2017-08-09 05:37:00 +02:00
|
|
|
{ stdenv, fetchurl, which, cctools }:
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2017-03-02 19:27:10 +01:00
|
|
|
let
|
|
|
|
generic = { version, sha256 }:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "miniupnpc";
|
|
|
|
inherit version;
|
2017-03-02 19:27:10 +01:00
|
|
|
src = fetchurl {
|
2019-08-13 23:52:01 +02:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "http://miniupnp.free.fr/files/download.php?file=${pname}-${version}.tar.gz";
|
2017-03-02 19:27:10 +01:00
|
|
|
inherit sha256;
|
|
|
|
};
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2019-10-26 15:35:48 +02:00
|
|
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ which cctools ];
|
2017-08-09 05:37:00 +02:00
|
|
|
|
2017-03-02 19:27:10 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
|
2015-11-24 13:00:19 +01:00
|
|
|
|
2017-03-02 19:27:10 +01:00
|
|
|
doCheck = !stdenv.isFreeBSD;
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2019-10-26 15:35:48 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2018-09-10 21:31:33 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://miniupnp.free.fr/";
|
2017-03-02 19:27:10 +01:00
|
|
|
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
|
2018-09-10 21:31:33 +02:00
|
|
|
platforms = with platforms; linux ++ freebsd ++ darwin;
|
|
|
|
license = licenses.bsd3;
|
2017-03-02 19:27:10 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
miniupnpc_2 = generic {
|
2019-07-02 02:41:26 +02:00
|
|
|
version = "2.1.20190625";
|
|
|
|
sha256 = "1yqp0d8x5ldjfma5x2vhpg1aaafdg0470ismccixww3rzpbza8w7";
|
2017-03-02 19:27:10 +01:00
|
|
|
};
|
|
|
|
miniupnpc_1 = generic {
|
2017-05-26 13:05:32 +02:00
|
|
|
version = "1.9.20160209";
|
|
|
|
sha256 = "0vsbv6a8by67alx4rxfsrxxsnmq74rqlavvvwiy56whxrkm728ap";
|
2011-05-17 13:34:18 +02:00
|
|
|
};
|
|
|
|
}
|