8 stdenv.mkDerivation rec {
13 url = "https://miniupnp.tuxfamily.org/files/${pname}-${version}.tar.gz";
14 hash = "sha256-BoTtLIQGQ351GaG9IOqDeA24cbOjpddSMRuj6Inb/HA=";
18 # install natpmp_declspec.h too, else nothing that uses this library will build
20 url = "https://github.com/miniupnp/libnatpmp/commit/5f4a7c65837a56e62c133db33c28cd1ea71db662.patch";
21 hash = "sha256-tvoGFmo5AzUgb40bIs/EzikE0ex1SFzE5peLXhktnbc=";
26 "INSTALLPREFIX=$(out)"
30 nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
37 description = "NAT-PMP client";
38 homepage = "http://miniupnp.free.fr/libnatpmp.html";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ orivej ];
41 mainProgram = "natpmpc";
42 platforms = platforms.all;