mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
miniupnpc: install binaries and manpages
This commit is contained in:
parent
99fed31f9d
commit
b09e866b85
@ -19,10 +19,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
doCheck = !stdenv.isFreeBSD;
|
doCheck = !stdenv.isFreeBSD;
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
chmod +x "$out"/lib/libminiupnpc${stdenv.hostPlatform.extensions.sharedLibrary}
|
chmod +x $out/lib/libminiupnpc${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
|
|
||||||
|
# for some reason cmake does not install binaries and manpages
|
||||||
|
# https://github.com/miniupnp/miniupnp/issues/637
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -a upnpc-static $out/bin/upnpc
|
||||||
|
cp -a ../external-ip.sh $out/bin/external-ip
|
||||||
|
mkdir -p $out/share/man
|
||||||
|
cp -a ../man3 $out/share/man
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user