mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
761ed40c5c
This potentially addresses CVE-2017-1000494. Changes since last version bump: 2017/12/11: Fix buffer over run in minixml.c Fix uninitialized variable access in upnpreplyparse.c
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ 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)";
|
|
|
|
meta = {
|
|
homepage = http://miniupnp.free.fr/;
|
|
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
|
|
platforms = with stdenv.lib.platforms; linux ++ freebsd ++ darwin;
|
|
};
|
|
};
|
|
in {
|
|
miniupnpc_2 = generic {
|
|
version = "2.0.20171212";
|
|
sha256 = "0za7pr6hrr3ajkifirhhxfn3hlhl06f622g8hnj5h8y18sp3bwff";
|
|
};
|
|
miniupnpc_1 = generic {
|
|
version = "1.9.20160209";
|
|
sha256 = "0vsbv6a8by67alx4rxfsrxxsnmq74rqlavvvwiy56whxrkm728ap";
|
|
};
|
|
}
|