libcoap: 4.2.1 -> 4.3.0

This commit is contained in:
Kierán Meinhardt 2021-12-27 09:26:02 +01:00
parent e3d7768843
commit d7ce3edcf7

View file

@ -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";