From 7adb260d60bef075f3f0e8f958950bc812ee0e3f Mon Sep 17 00:00:00 2001 From: Ethan Rooke Date: Fri, 17 Nov 2023 17:31:31 -0600 Subject: [PATCH] Follow a linked NP_LOCATION If `$NP_LOCATION` is linked to a location broot will fail to start. This dereferences any link in `$NP_LOCATION`. --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index 2633a0f..eb419f3 100644 --- a/default.nix +++ b/default.nix @@ -112,6 +112,7 @@ let # user specified location for program files and nix store [ -z "\$NP_LOCATION" ] && NP_LOCATION="\$HOME" + NP_LOCATION="\$(readlink -f "\$NP_LOCATION")" dir="\$NP_LOCATION/.nix-portable" # create /nix/var/nix to prevent nix from falling back to chroot store. mkdir -p \$dir/{bin,var/nix/var}