about summary refs log tree commit diff
path: root/scripts/nix-profile.sh.in
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-10-11T17·30+0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-10-11T17·30+0000
commit15ff877438a57936d620622cee8fb98cea607d08 (patch)
treea43b7705054fc17ab98465cbadc09837e7a70ed5 /scripts/nix-profile.sh.in
parent0f133ae8d280c33db21d0aab7269c647de016b23 (diff)
add @coreutils@ to correctly use coreutils to create a profile. This is needed
for NixOS, where we might not know our PATH in advance.

Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r--scripts/nix-profile.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 7f19f801484c..dc695be82f5d 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -4,7 +4,7 @@ if test -n "$HOME"; then
     if ! test -L "$NIX_LINK"; then
         echo "creating $NIX_LINK"
         _NIX_DEF_LINK=@localstatedir@/nix/profiles/default
-        ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
+        @coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
     fi
 
     export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH