From 5e88e9b2ff50e2690a57bd44a4b836849f3a9422 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 5 Feb 2013 10:37:50 -0500 Subject: [PATCH] nixos-install: Fully resolve symlinks in the paths to nixos/nixpkgs sources. --- modules/installer/tools/nixos-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/installer/tools/nixos-install.sh b/modules/installer/tools/nixos-install.sh index 41922652cfb..470dea940a3 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -159,9 +159,8 @@ done # 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=$(nix-instantiate --find-file nixpkgs) -nixos_src=$(nix-instantiate --find-file nixos) +nixpkgs_src=$(readlink -f $(nix-instantiate --find-file nixpkgs)) +nixos_src=$(readlink -f $(nix-instantiate --find-file nixos)) # Build the specified Nix expression in the target store and install