diff options
Diffstat (limited to 'pkgs/libupnpp')
-rw-r--r-- | pkgs/libupnpp/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/libupnpp/default.nix b/pkgs/libupnpp/default.nix new file mode 100644 index 0000000..5775462 --- /dev/null +++ b/pkgs/libupnpp/default.nix @@ -0,0 +1,42 @@ +{ pkgs ? import <nixpkgs> {} +, autoconf +, autoreconfHook +, curl +, expat +, fetchgit +, libmicrohttpd +, libnpupnp ? pkgs.eth.libnpupnp +, pkgconfig +, stdenv +}: + +stdenv.mkDerivation rec { + name = "libupnpp-${version}"; + version = "latest"; + + src = fetchgit { + url = "https://framagit.org/medoc92/libupnpp.git"; + rev = "762e35f4f66df183b8df8b1fc4dbab187068441d"; + sha256 = "085virkyz8cp55kd6k3zadhclh10qi78ijd84dnbmk852w57xsx9"; + }; + + nativeBuildInputs = [ + autoconf + autoreconfHook + pkgconfig + ]; + + buildInputs = [ + curl.dev + libnpupnp + expat + ]; + + enableParallelBuilding = true; + + meta = { + description = "A higher level C++ API over libnpupnp or libupnp"; + homepage = "https://www.lesbonscomptes.com/upmpdcli/libupnpp-refdoc/libupnpp-ctl.html"; + license = stdenv.lib.licenses.lgpl21; + }; +} |