2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libnatpmp";
|
|
|
|
version = "20150609";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "http://miniupnp.free.fr/files/download.php?file=${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1";
|
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
makeFlags = [
|
|
|
|
"INSTALLPREFIX=$(out)"
|
|
|
|
"CC:=$(CC)"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
postFixup = ''
|
|
|
|
chmod +x $out/lib/*
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://miniupnp.free.fr/libnatpmp.html";
|
|
|
|
description = "NAT-PMP client";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2021-03-15 08:37:03 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|