about summary refs log tree commit diff
path: root/pkgs/applications/misc/openbox-menu
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-18 10:53:39 +0200
committerStéphan Kochen <git@stephank.nl>2021-05-18 11:02:13 +0200
commite010c911049e5bccf2f626b3cc0c65fc72fe32db (patch)
treefdfe555a3d15474f30b4638ab102c76f741e4775 /pkgs/applications/misc/openbox-menu
parent42add18071279a9bfbffcf807976ce72925826e1 (diff)
openbox-menu: fix darwin build
Diffstat (limited to 'pkgs/applications/misc/openbox-menu')
-rw-r--r--pkgs/applications/misc/openbox-menu/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/misc/openbox-menu/default.nix b/pkgs/applications/misc/openbox-menu/default.nix
index 71c7903dfe221..e9646b9c21d46 100644
--- a/pkgs/applications/misc/openbox-menu/default.nix
+++ b/pkgs/applications/misc/openbox-menu/default.nix
@@ -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; {