diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in index 42e715605d..772fb10cfd 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;