3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #205665 from prusnak/miniupnpc

miniupnpc: install binaries and manpages
This commit is contained in:
Pavol Rusnak 2022-12-12 14:12:28 +01:00 committed by GitHub
commit aec339148e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,10 +19,18 @@ stdenv.mkDerivation rec {
doCheck = !stdenv.isFreeBSD;
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
makeFlags = [ "PREFIX=$(out)" ];
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; {