summary refs log tree commit diff
path: root/pkgs/stdenv/cross/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-19 16:25:54 -0400
committerJohn Ericson <Ericson2314@yahoo.com>2018-03-20 15:58:09 -0400
commit45e253cacbd272f9bab414b260dd5bf5331d0409 (patch)
tree6280049e0ed69dfe19bb8304dffa59dae5187767 /pkgs/stdenv/cross/default.nix
parentba96a902adad083b11af927fef390f59b15bd2c1 (diff)
cross stdenv: Make depsBuildBuild overrideable by config too.
Diffstat (limited to 'pkgs/stdenv/cross/default.nix')
-rw-r--r--pkgs/stdenv/cross/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/stdenv/cross/default.nix b/pkgs/stdenv/cross/default.nix
index 8da3555c6c608..6e3065718532c 100644
--- a/pkgs/stdenv/cross/default.nix
+++ b/pkgs/stdenv/cross/default.nix
@@ -10,9 +10,15 @@ let
     config = builtins.removeAttrs config [ "replaceStdenv" ];
   };
 
-in bootStages ++ [
+in lib.init bootStages ++ [
 
-  # Build Packages
+  # Regular native packages
+  (somePrevStage: lib.last bootStages somePrevStage // {
+    # It's OK to change the built-time dependencies
+    allowCustomOverrides = true;
+  })
+
+  # Build tool Packages
   (vanillaPackages: {
     inherit config overlays;
     selfBuild = false;