From c13c93f03bf0ffaa97bfe2615e43bd35386b0f8b Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 17 Dec 2017 13:18:10 +0000 Subject: [PATCH] drat-trim: fix build on darwin --- pkgs/applications/science/logic/drat-trim/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/science/logic/drat-trim/default.nix b/pkgs/applications/science/logic/drat-trim/default.nix index 3d5cec70b82c..50454847baf1 100644 --- a/pkgs/applications/science/logic/drat-trim/default.nix +++ b/pkgs/applications/science/logic/drat-trim/default.nix @@ -10,6 +10,10 @@ stdenv.mkDerivation rec { sha256 = "1m9q47dfnvdli1z3kb1jvvbm0dgaw725k1aw6h9w00bggqb91bqh"; }; + postPatch = '' + substituteInPlace Makefile --replace gcc cc + ''; + installPhase = '' install -Dt $out/bin drat-trim '';