* Use the build flags given on the command line while building Nix.

svn path=/nixos/trunk/; revision=19799
This commit is contained in:
Eelco Dolstra 2010-02-03 22:49:50 +00:00
parent 051e9342b3
commit 6a06118f85

View file

@ -142,8 +142,8 @@ fi
# more conservative.
if test -n "$buildNix"; then
echo "building Nix..." >&2
if ! nix-build $NIXOS -A nixFallback -o $tmpDir/nix > /dev/null; then
nix-build $NIXPKGS -A nixUnstable -o $tmpDir/nix > /dev/null
if ! nix-build $NIXOS -A nixFallback -o $tmpDir/nix $extraBuildFlags > /dev/null; then
nix-build $NIXPKGS -A nixUnstable -o $tmpDir/nix $extraBuildFlags > /dev/null
fi
PATH=$tmpDir/nix/bin:$PATH
fi