1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/tools/networking/miniupnpd/default.nix
2014-04-15 14:37:20 +02:00

32 lines
739 B
Nix

{ stdenv, fetchurl, iptables, libnfnetlink }:
assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "miniupnpd-1.8.20140401";
src = fetchurl {
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
sha256 = "1gfdbfqcw6ih830si51yzqbyymgcbwkiv9vk5dwnxs78b7xgyv88";
};
buildInputs = [ iptables libnfnetlink ];
NIX_CFLAGS_COMPILE = "-DIPTABLES_143";
NIX_CFLAGS_LINK = "-liptc -lnfnetlink";
makefile = "Makefile.linux";
makeFlags = "LIBS=";
buildFlags = "miniupnpd genuuid";
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
meta = {
homepage = http://miniupnp.free.fr/;
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";
};
}