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/libnpupnp/default.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/libnpupnp/default.nix (limited to 'pkgs/libnpupnp') 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 {} +, 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; + }; +} -- cgit v1.2.3