summaryrefslogtreecommitdiff
path: root/pkgs/libupnpp
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-05-22 16:37:24 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-05-22 16:37:24 +0100
commita0000bf3f1789555cdd1d8b586ff611ef9ad7e64 (patch)
tree8354d5d2890083e0766ba8139193fac601bc6544 /pkgs/libupnpp
parent50b27be54d368f38945bae71bc0683330c2a7693 (diff)
create nixpkgs for upmpdcli and dependencies, also a NixOS module
Diffstat (limited to 'pkgs/libupnpp')
-rw-r--r--pkgs/libupnpp/default.nix42
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;
+ };
+}