about summary refs log tree commit diff
path: root/scripts/nix-channel.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-channel.in')
-rw-r--r--scripts/nix-channel.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index 42e715605d69..772fb10cfd3c 100644
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -107,7 +107,7 @@ sub update {
     chomp $storeExpr;
 
     # Build the resulting derivation.
-    my $outPath = `nix-store --add-root '$rootFile' -r '$storeExpr'`
+    my $outPath = `@bindir@/nix-store --add-root '$rootFile' -r '$storeExpr'`
         or die "cannot realise store expression";
     chomp $outPath;