From c4190b4894214f3db5d258a50d06e2249292e3a7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 2 Jan 2015 14:39:30 -0600 Subject: [PATCH] abc: export buildFlags in the preBuild --- pkgs/applications/science/logic/abc/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/science/logic/abc/default.nix b/pkgs/applications/science/logic/abc/default.nix index 30c36ae29dc8..8d532a342ec3 100644 --- a/pkgs/applications/science/logic/abc/default.nix +++ b/pkgs/applications/science/logic/abc/default.nix @@ -11,6 +11,9 @@ stdenv.mkDerivation rec { }; buildInputs = [ readline ]; + preBuild = '' + export buildFlags="CC=$CC CXX=$CXX LD=$LD" + ''; enableParallelBuilding = true; installPhase = '' mkdir -p $out/bin