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