3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/miniupnpc/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, which, cctools }:
let
generic = { version, sha256 }:
stdenv.mkDerivation rec {
name = "miniupnpc-${version}";
src = fetchurl {
name = "${name}.tar.gz";
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
inherit sha256;
};
nativeBuildInputs = [] ++
stdenv.lib.optionals stdenv.isDarwin [ which cctools ];
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
doCheck = !stdenv.isFreeBSD;
makeFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
2018-09-10 20:31:33 +01:00
meta = with stdenv.lib; {
homepage = http://miniupnp.free.fr/;
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
2018-09-10 20:31:33 +01:00
platforms = with platforms; linux ++ freebsd ++ darwin;
license = licenses.bsd3;
};
};
in {
miniupnpc_2 = generic {
2019-05-12 12:52:22 +01:00
version = "2.1.20190408";
sha256 = "1v0l2m8j7r6jiy871d6v11ls243xqn6s3856iwd3bmk5c37npi50";
};
miniupnpc_1 = generic {
version = "1.9.20160209";
sha256 = "0vsbv6a8by67alx4rxfsrxxsnmq74rqlavvvwiy56whxrkm728ap";
};
}