2015-08-13 14:59:56 +02:00
|
|
|
{ stdenv, fetchurl, iptables, pkgconfig }:
|
2010-05-21 00:11:44 +02:00
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-14 16:09:11 +01:00
|
|
|
name = "miniupnpd-1.9.20160113";
|
2010-05-21 00:11:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
|
2016-01-14 16:09:11 +01:00
|
|
|
sha256 = "084ii5vb54rr8sg50cqvsw5rj6linj23p3gnxwfyl100dkkgvcaa";
|
2015-08-13 14:59:56 +02:00
|
|
|
name = "${name}.tar.gz";
|
2010-05-21 00:11:44 +02:00
|
|
|
};
|
|
|
|
|
2015-08-13 14:59:56 +02:00
|
|
|
buildInputs = [ iptables ];
|
|
|
|
nativeBuildInputs= [ pkgconfig ];
|
2010-05-21 00:11:44 +02:00
|
|
|
|
2015-08-13 14:59:56 +02:00
|
|
|
NIX_CFLAGS_LINK = "-liptc";
|
2012-10-13 18:34:31 +02:00
|
|
|
|
2010-05-21 00:11:44 +02:00
|
|
|
makefile = "Makefile.linux";
|
|
|
|
|
2014-04-15 14:36:58 +02:00
|
|
|
buildFlags = "miniupnpd genuuid";
|
2010-05-21 00:11:44 +02:00
|
|
|
|
2014-04-15 14:36:58 +02:00
|
|
|
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
2010-05-21 01:06:10 +02:00
|
|
|
|
2010-05-21 00:11:44 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://miniupnp.free.fr/;
|
|
|
|
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";
|
2015-05-16 20:34:17 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-05-21 00:11:44 +02:00
|
|
|
};
|
|
|
|
}
|