diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-05-22 16:37:24 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-05-22 16:37:24 +0100 |
commit | a0000bf3f1789555cdd1d8b586ff611ef9ad7e64 (patch) | |
tree | 8354d5d2890083e0766ba8139193fac601bc6544 /pkgs/libnpupnp | |
parent | 50b27be54d368f38945bae71bc0683330c2a7693 (diff) |
create nixpkgs for upmpdcli and dependencies, also a NixOS module
Diffstat (limited to 'pkgs/libnpupnp')
-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; + }; +} |