libcoap: 4.2.1 -> 4.3.0
This commit is contained in:
parent
e3d7768843
commit
d7ce3edcf7
1 changed files with 10 additions and 8 deletions
|
@ -1,13 +1,16 @@
|
|||
{ fetchFromGitHub, automake, autoconf, which, pkg-config, libtool, lib, stdenv }:
|
||||
{ fetchFromGitHub, automake, autoconf, which, pkg-config, libtool, lib, stdenv, gnutls, asciidoc, doxygen
|
||||
, withTLS ? true
|
||||
, withDocs ? true
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcoap";
|
||||
version = "4.2.1";
|
||||
version = "4.3.0";
|
||||
src = fetchFromGitHub {
|
||||
repo = "libcoap";
|
||||
owner = "obgm";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1jkvha52lic13f13hnppizkl80bb2rciayb5hxici0gj6spphgha";
|
||||
sha256 = "1l031ys833gch600g9g3lvbsr4nysx6glbbj4lwvx3ywl0jr6l9k";
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
automake
|
||||
|
@ -15,12 +18,11 @@ stdenv.mkDerivation rec {
|
|||
which
|
||||
libtool
|
||||
pkg-config
|
||||
];
|
||||
] ++ lib.optional withTLS gnutls ++ lib.optionals withDocs [ doxygen asciidoc ] ;
|
||||
preConfigure = "./autogen.sh";
|
||||
configureFlags = [
|
||||
"--disable-documentation"
|
||||
"--disable-shared"
|
||||
];
|
||||
configureFlags = [ "--disable-shared" ]
|
||||
++ lib.optional (!withDocs) "--disable-documentation"
|
||||
++ lib.optional withTLS "--enable-dtls";
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/obgm/libcoap";
|
||||
description = "A CoAP (RFC 7252) implementation in C";
|
||||
|
|
Loading…
Reference in a new issue