2014-04-15 12:36:58 +00:00
|
|
|
{ stdenv, fetchurl, iptables, libnfnetlink }:
|
2010-05-20 22:11:44 +00:00
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-15 12:36:58 +00:00
|
|
|
name = "miniupnpd-1.8.20140401";
|
2010-05-20 22:11:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
|
2014-04-15 12:36:58 +00:00
|
|
|
sha256 = "1gfdbfqcw6ih830si51yzqbyymgcbwkiv9vk5dwnxs78b7xgyv88";
|
2010-05-20 22:11:44 +00:00
|
|
|
};
|
|
|
|
|
2014-04-15 12:36:58 +00:00
|
|
|
buildInputs = [ iptables libnfnetlink ];
|
2010-05-20 22:11:44 +00:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-DIPTABLES_143";
|
|
|
|
|
2012-10-13 16:34:31 +00:00
|
|
|
NIX_CFLAGS_LINK = "-liptc -lnfnetlink";
|
|
|
|
|
2010-05-20 22:11:44 +00:00
|
|
|
makefile = "Makefile.linux";
|
|
|
|
|
|
|
|
makeFlags = "LIBS=";
|
|
|
|
|
2014-04-15 12:36:58 +00:00
|
|
|
buildFlags = "miniupnpd genuuid";
|
2010-05-20 22:11:44 +00:00
|
|
|
|
2014-04-15 12:36:58 +00:00
|
|
|
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
2010-05-20 23:06:10 +00:00
|
|
|
|
2010-05-20 22:11:44 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://miniupnp.free.fr/;
|
|
|
|
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";
|
|
|
|
};
|
|
|
|
}
|