From 6a06118f85670ba403556b01db969330868f1431 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Feb 2010 22:49:50 +0000 Subject: [PATCH] * Use the build flags given on the command line while building Nix. svn path=/nixos/trunk/; revision=19799 --- modules/installer/tools/nixos-rebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/installer/tools/nixos-rebuild.sh b/modules/installer/tools/nixos-rebuild.sh index d799ee6037d..c5dce0a1807 100644 --- a/modules/installer/tools/nixos-rebuild.sh +++ b/modules/installer/tools/nixos-rebuild.sh @@ -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