From a0000bf3f1789555cdd1d8b586ff611ef9ad7e64 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Fri, 22 May 2020 16:37:24 +0100 Subject: create nixpkgs for upmpdcli and dependencies, also a NixOS module --- pkgs/libupnpp/default.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/libupnpp/default.nix (limited to 'pkgs/libupnpp') 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 {} +, 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; + }; +} -- cgit v1.2.3