activation.nix: fix for "activation from build result"

Solve #111
This commit is contained in:
Shamrock Lee 2021-09-12 17:43:13 +08:00 committed by Alexander Sosedkin
parent 97e1e71b84
commit 3aa377bf01

View file

@ -133,7 +133,7 @@ in
if [[ $generationDir =~ ^${profileDirectory}-([0-9]+)-link$ ]]; then
$DRY_RUN_CMD nix-env --profile "${profileDirectory}" --switch-generation "''${BASH_REMATCH[1]}"
else
$DRY_RUN_CMD nix-env --profile "${profileDirectory}" --set "$generationDir"
$DRY_RUN_CMD nix-env --profile "${profileDirectory}" --set "$(realpath "$generationDir")"
fi
'';