1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/libcoap.nix

24 lines
820 B
Nix
Raw Normal View History

2020-06-10 17:37:25 +02:00
{ lib, fetchFromGitHub, automake, autoconf, which, libtool, stdenv, gnutls
, tls ? false }:
2019-06-01 22:13:58 +02:00
stdenv.mkDerivation {
name = "libcoap";
src = fetchFromGitHub {
repo = "libcoap";
owner = "obgm";
rev = "25863042ae1e95138776f65c772f9fa6ce60495c";
sha256 = "1nic584jwkndg0w831h0fnxk0zx0apf2lw5md079m3di7zcxs6bw";
2019-08-18 19:15:54 +02:00
fetchSubmodules = true;
2019-06-01 22:13:58 +02:00
};
2020-06-10 17:37:25 +02:00
buildInputs = [ automake autoconf which libtool ] ++ lib.optional tls gnutls;
2019-08-18 19:15:54 +02:00
preConfigure = "./autogen.sh";
2020-06-10 17:37:25 +02:00
configureFlags = [ "--disable-documentation" "--disable-shared" ]
++ lib.optional tls "--enable-dtls";
2021-06-01 19:14:00 +02:00
meta = with lib; {
2019-08-18 19:15:54 +02:00
homepage = "https://github.com/obgm/libcoap";
2019-06-01 22:13:58 +02:00
description = "A CoAP (RFC 7252) implementation in C";
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = [ maintainers.kmein ];
};
}