summary refs log tree commit diff
path: root/pkgs/stdenv/native
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-01-19 16:50:09 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-01-19 16:50:09 +0000
commite1f901c117bcc82157a1bd3167909284cc7bf926 (patch)
tree0551a6bbe1dfc5552c3a99b480211588ff0113a3 /pkgs/stdenv/native
parent6b8e8bfedb3fee8ab413b5fbb94b57a08cdd30ca (diff)
downloadnixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar.gz
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar.bz2
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar.lz
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar.xz
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.tar.zst
nixpkgs-e1f901c117bcc82157a1bd3167909284cc7bf926.zip
* Build ‘xz’ during the stdenvNative bootstrap, since we really can't
  rely on it being present.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31707
Diffstat (limited to 'pkgs/stdenv/native')
-rw-r--r--pkgs/stdenv/native/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix
index 3319a0d9271..28f077aa8ef 100644
--- a/pkgs/stdenv/native/default.nix
+++ b/pkgs/stdenv/native/default.nix
@@ -83,7 +83,7 @@ rec {
   # A function that builds a "native" stdenv (one that uses tools in
   # /usr etc.).  
   makeStdenv =
-    {gcc, fetchurl, extraPath ? []}:
+    { gcc, fetchurl, extraPath ? [], overrides ? (pkgs: { }) }:
 
     import ../generic {
       name = "stdenv-native";
@@ -100,7 +100,7 @@ rec {
 
       fetchurlBoot = fetchurl;
 
-      inherit system shell gcc;
+      inherit system shell gcc overrides;
     };
 
 
@@ -137,12 +137,13 @@ rec {
   };
 
 
-  # Using that, build a stdenv that adds the `replace' command (which
-  # most systems don't have, so we mustn't rely on the native
-  # environment providing it).
+  # Using that, build a stdenv that adds the ‘xz’ command (which most
+  # systems don't have, so we mustn't rely on the native environment
+  # providing it).
   stdenvBoot2 = makeStdenv {
     inherit gcc fetchurl;
-    extraPath = [stdenvBoot1Pkgs.replace];
+    extraPath = [ stdenvBoot1Pkgs.xz ];
+    overrides = pkgs: { inherit (stdenvBoot1Pkgs) xz; };
   };