Merge pull request #146529 from smancill/ZHF-convbin

convbin: fix build on darwin

Changed files
+4
pkgs
tools
misc
convbin
+4
pkgs/tools/misc/convbin/default.nix
···
sha256 = "sha256-zCRM62xwaPaN8+cg+CeaqK/9hKpZmSBBeUOQqAvQGYw=";
};
+
postPatch = lib.optionalString stdenv.isDarwin ''
+
substituteInPlace Makefile --replace "-flto" ""
+
'';
+
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
checkPhase = ''