about summary refs log tree commit diff
path: root/pkgs/tools/misc/convbin
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2021-11-18 17:16:32 -0300
committerSebastián Mancilla <smancill@smancill.dev>2021-11-18 17:17:15 -0300
commit9584a89e690c70184216ad4b06fc5bf9c88d7190 (patch)
tree4a5f11b6144d91c94f741bb1c4cc896ba85498a8 /pkgs/tools/misc/convbin
parente4a4f3ba55f0f9d379760b6541cec093635526e8 (diff)
convbin: fix build on darwin
Diffstat (limited to 'pkgs/tools/misc/convbin')
-rw-r--r--pkgs/tools/misc/convbin/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/misc/convbin/default.nix b/pkgs/tools/misc/convbin/default.nix
index e350092a0e366..90b403adeb603 100644
--- a/pkgs/tools/misc/convbin/default.nix
+++ b/pkgs/tools/misc/convbin/default.nix
@@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-zCRM62xwaPaN8+cg+CeaqK/9hKpZmSBBeUOQqAvQGYw=";
   };
 
+  postPatch = lib.optionalString stdenv.isDarwin ''
+    substituteInPlace Makefile --replace "-flto" ""
+  '';
+
   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
 
   checkPhase = ''