nixpkgs/pkgs/tools/networking/miniupnpc/default.nix

35 lines
985 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
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;
};
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
doCheck = !stdenv.isFreeBSD;
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
meta = {
homepage = http://miniupnp.free.fr/;
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
2017-04-20 22:46:22 +01:00
platforms = with stdenv.lib.platforms; linux ++ freebsd ++ darwin;
};
};
in {
miniupnpc_2 = generic {
version = "2.0.20170509";
sha256 = "0spi75q6nafxp3ndnrhrlqagzmjlp8wwlr5x7rnvdpswgxi6ihyk";
};
miniupnpc_1 = generic {
version = "1.9.20160209";
sha256 = "0vsbv6a8by67alx4rxfsrxxsnmq74rqlavvvwiy56whxrkm728ap";
};
}