nixos-install: Fully resolve symlinks in the paths to nixos/nixpkgs sources.

This commit is contained in:
Shea Levy 2013-02-05 10:37:50 -05:00
parent 98b7253b29
commit 5e88e9b2ff

View File

@ -159,9 +159,8 @@ done
# Get the absolute path to the NixOS/Nixpkgs sources. # Get the absolute path to the NixOS/Nixpkgs sources.
export NIX_PATH=${NIX_PATH+$NIX_PATH:}/nix/var/nix/profiles/per-user/root/channels/nixos nixpkgs_src=$(readlink -f $(nix-instantiate --find-file nixpkgs))
nixpkgs_src=$(nix-instantiate --find-file nixpkgs) nixos_src=$(readlink -f $(nix-instantiate --find-file nixos))
nixos_src=$(nix-instantiate --find-file nixos)
# Build the specified Nix expression in the target store and install # Build the specified Nix expression in the target store and install