1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 name = "${pname}-${version}.tar.gz";
9 url = "http://miniupnp.free.fr/files/download.php?file=${pname}-${version}.tar.gz";
10 sha256 = "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1";
14 substituteInPlace Makefile \
15 --replace "gcc" "${stdenv.cc.targetPrefix}cc" \
16 --replace "ar" "${stdenv.cc.targetPrefix}ar"
19 makeFlags = [ "INSTALLPREFIX=$(out)" ];
22 homepage = "http://miniupnp.free.fr/libnatpmp.html";
23 description = "NAT-PMP client";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ orivej ];
26 platforms = platforms.all;