Unverified Commit b86b089c authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #146529 from smancill/ZHF-convbin

convbin: fix build on darwin
parents e17aa2be 9584a89e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = ''