From 0aee847858631b2b5aaef54714b598ce78b31b20 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 2 Jun 2017 13:31:11 -0400 Subject: [PATCH] cc-wrapper: Make the cross compiler use a crossEnvHook This is a hack until stdenv's setup.hs gets overhauled --- pkgs/build-support/cc-wrapper/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 83326777326d..3a155b26319d 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -81,6 +81,8 @@ let fi done EOF + + sed -i $out -e 's_envHooks_crossEnvHooks_g' '' + '' # NIX_ things which we don't both use and define, we revert them