miniupnpc: install binaries and manpages

This commit is contained in:
Pavol Rusnak 2022-12-11 19:52:09 +01:00
parent 99fed31f9d
commit b09e866b85
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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; {