mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* Fix installing from the modular branch. system/system.nix no longer
exists. $NIXPKGS needs to be set, otherwise NixOS can't find Nixpkgs (because in the chroot it's in /mnt/etc/nixos/nixpkgs). Also clear LANG to shut up Perl warnings about the locale. svn path=/nixos/branches/modular-nixos/; revision=15978
This commit is contained in:
parent
16937dd23d
commit
c3ea825c23
@ -110,6 +110,10 @@ for i in $storePaths; do
|
||||
done
|
||||
|
||||
|
||||
# We don't have locale-archive in the chroot, so clear $LANG.
|
||||
export LANG=
|
||||
|
||||
|
||||
# Register the paths in the Nix closure as valid. This is necessary
|
||||
# to prevent them from being deleted the first time we install
|
||||
# something. (I.e., Nix will see that, e.g., the glibc path is not
|
||||
@ -143,9 +147,9 @@ fi
|
||||
# Build the specified Nix expression in the target store and install
|
||||
# it into the system configuration profile.
|
||||
echo "building the system configuration..."
|
||||
chroot $mountPoint @nix@/bin/nix-env \
|
||||
NIXPKGS=/mnt/etc/nixos/nixpkgs chroot $mountPoint @nix@/bin/nix-env \
|
||||
-p /nix/var/nix/profiles/system \
|
||||
-f "/mnt$NIXOS/system/system.nix" \
|
||||
-f "/mnt$NIXOS" \
|
||||
--arg configuration "import $NIXOS_CONFIG" \
|
||||
--set -A system
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user