libnatpmp: fix darwin build
This commit is contained in:
parent
e5cfd956d8
commit
e8ddcf9db4
@ -10,6 +10,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "${stdenv.cc.targetPrefix}cc" \
|
||||
--replace "ar" "${stdenv.cc.targetPrefix}ar"
|
||||
'';
|
||||
|
||||
makeFlags = [ "INSTALLPREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
@ -17,6 +23,6 @@ stdenv.mkDerivation rec {
|
||||
description = "NAT-PMP client";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ orivej ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user