Merge pull request #123471 from stephank/fix-openbox-menu-darwin

openbox-menu: fix darwin build
This commit is contained in:
Sandro 2021-05-18 13:00:30 +02:00 committed by GitHub
commit 7bfe6b141d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,13 @@ stdenv.mkDerivation rec {
# Enables SVG support by uncommenting the Makefile
patches = [ ./000-enable-svg.patch ];
# The strip options are not recognized by Darwin.
postPatch = lib.optionalString stdenv.isDarwin ''
sed -i -e '/strip -s/d' Makefile
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installFlags = [ "prefix=${placeholder "out"}" ];
meta = with lib; {