2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
32 lines
790 B
Nix
32 lines
790 B
Nix
{ lib, stdenv, fetchurl, fixDarwinDylibNames }:
|
|
|
|
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";
|
|
};
|
|
|
|
makeFlags = [
|
|
"INSTALLPREFIX=$(out)"
|
|
"CC:=$(CC)"
|
|
];
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
|
|
|
postFixup = ''
|
|
chmod +x $out/lib/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "NAT-PMP client";
|
|
homepage = "http://miniupnp.free.fr/libnatpmp.html";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ orivej ];
|
|
mainProgram = "natpmpc";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|