2017-08-09 04:37:00 +01:00
|
|
|
{ stdenv, fetchurl, which, cctools }:
|
2011-05-17 12:34:18 +01:00
|
|
|
|
2017-03-02 18:27:10 +00:00
|
|
|
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;
|
|
|
|
};
|
2011-05-17 12:34:18 +01:00
|
|
|
|
2017-08-09 04:37:00 +01:00
|
|
|
nativeBuildInputs = [] ++
|
|
|
|
stdenv.lib.optionals stdenv.isDarwin [ which cctools ];
|
|
|
|
|
2017-03-02 18:27:10 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
|
2015-11-24 12:00:19 +00:00
|
|
|
|
2017-03-02 18:27:10 +00:00
|
|
|
doCheck = !stdenv.isFreeBSD;
|
2011-05-17 12:34:18 +01:00
|
|
|
|
2017-08-09 04:37:00 +01:00
|
|
|
makeFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
2011-05-17 12:34:18 +01:00
|
|
|
|
2017-03-02 18:27:10 +00:00
|
|
|
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;
|
2017-03-02 18:27:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
miniupnpc_2 = generic {
|
2018-01-15 16:55:00 +00:00
|
|
|
version = "2.0.20171212";
|
|
|
|
sha256 = "0za7pr6hrr3ajkifirhhxfn3hlhl06f622g8hnj5h8y18sp3bwff";
|
2017-03-02 18:27:10 +00:00
|
|
|
};
|
|
|
|
miniupnpc_1 = generic {
|
2017-05-26 12:05:32 +01:00
|
|
|
version = "1.9.20160209";
|
|
|
|
sha256 = "0vsbv6a8by67alx4rxfsrxxsnmq74rqlavvvwiy56whxrkm728ap";
|
2011-05-17 12:34:18 +01:00
|
|
|
};
|
|
|
|
}
|