* Prepend the "prehook" rather than sourcing it.

* Don't call xargs with the -r flag in the Darwin bootstrap.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31703
This commit is contained in:
Eelco Dolstra
2012-01-19 15:56:17 +00:00
parent 6208059079
commit ee45e160b1
8 changed files with 40 additions and 37 deletions

View File

@@ -55,10 +55,10 @@ rec {
builder = bootstrapFiles.sh;
args = if (system == "armv5tel-linux") then
([ ./scripts/unpack-bootstrap-tools-arm.sh ])
else
([ ./scripts/unpack-bootstrap-tools.sh ]);
args =
if system == "armv5tel-linux"
then [ ./scripts/unpack-bootstrap-tools-arm.sh ]
else [ ./scripts/unpack-bootstrap-tools.sh ];
inherit (bootstrapFiles) bzip2 mkdir curl cpio;
@@ -82,7 +82,7 @@ rec {
import ../generic {
inherit system;
name = "stdenv-linux-boot";
preHook = builtins.toFile "prehook.sh"
preHook =
''
# Don't patch #!/interpreter because it leads to retained
# dependencies on the bootstrapTools in the final stdenv.
@@ -263,7 +263,7 @@ rec {
inherit system;
preHook = builtins.toFile "prehook.sh" commonPreHook;
preHook = commonPreHook;
initialPath =
((import ../common-path.nix) {pkgs = stdenvLinuxBoot4Pkgs;})

View File

@@ -1,3 +0,0 @@
export NIX_ENFORCE_PURITY=1
havePatchELF=1