diff options
Diffstat (limited to 'pkgs/libnpupnp/default.nix')
-rw-r--r-- | pkgs/libnpupnp/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/libnpupnp/default.nix b/pkgs/libnpupnp/default.nix new file mode 100644 index 0000000..ced2d58 --- /dev/null +++ b/pkgs/libnpupnp/default.nix @@ -0,0 +1,39 @@ +{ pkgs ? import <nixpkgs> {} +, autoconf +, autoreconfHook +, curl +, expat +, fetchgit +, libmicrohttpd +, pkgconfig +, stdenv +}: + +stdenv.mkDerivation rec { + name = "libnpupnp-${version}"; + version = "latest"; + + src = fetchgit { + url = "https://framagit.org/medoc92/npupnp.git"; + rev = "98433263968de83f13416bf096a31fa354a646fa"; + sha256 = "0i5hd7pbmcdhh46hqf50881jbl7ycv3gpvczbpzkx5ffbnpxxika"; + }; + + nativeBuildInputs = [ + autoconf + autoreconfHook + pkgconfig + ]; + + buildInputs = [ + curl.dev + expat + libmicrohttpd + ]; + + meta = { + description = "A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp"; + homepage = "https://framagit.org/medoc92/npupnp"; + license = stdenv.lib.licenses.bsd3; + }; +} |