2015-11-24 13:00:19 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2011-05-17 13:34:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-23 12:05:31 +02:00
|
|
|
name = "miniupnpc-${version}";
|
2017-03-02 01:43:26 +01:00
|
|
|
version = "2.0.20161216";
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2015-11-24 13:00:19 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
|
2017-03-02 01:43:26 +01:00
|
|
|
sha256 = "0gpxva9jkjvqwawff5y51r6bmsmdhixl3i5bmzlqsqpwsq449q81";
|
|
|
|
};
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2017-03-02 01:43:26 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
|
2015-11-24 13:00:19 +01:00
|
|
|
|
2017-03-02 01:43:26 +01:00
|
|
|
doCheck = !stdenv.isFreeBSD;
|
2011-05-17 13:34:18 +02:00
|
|
|
|
2015-08-12 12:23:30 +02:00
|
|
|
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
2011-05-17 13:34:18 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://miniupnp.free.fr/;
|
|
|
|
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
|
2015-12-30 09:54:36 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ freebsd;
|
2011-05-17 13:34:18 +02:00
|
|
|
};
|
|
|
|
}
|