summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-11-18 21:23:05 +0000
committerGitHub <noreply@github.com>2021-11-18 21:23:05 +0000
commitb86b089c72f8f76d0128f2c132b4976a405e8c1b (patch)
tree779c0b1794916d3aa374676900b89e8d72d64c98 /pkgs/tools
parente17aa2be66aad5ab21c9df8cd0ab79b089c33835 (diff)
parent9584a89e690c70184216ad4b06fc5bf9c88d7190 (diff)
Merge pull request #146529 from smancill/ZHF-convbin
convbin: fix build on darwin
Diffstat (limited to 'pkgs/tools')
-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 e350092a0e36..90b403adeb60 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 = ''