aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-04-06 08:18:51 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-04-06 08:18:51 +0000
commit03f1d1ecb5ef69c8c065c83373f9f9f749995c50 (patch)
tree015504d426363cf19aea03589281593cf7f31a20 /scripts/nix-push.in
parent59b94ee18ac0cba5c7b261ee72550a4d3db0acb5 (diff)
* Switched from wget to curl.
* Made the dependencies on bzip2 and the shell explicit.
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index 167d787b7..57d89d13c 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -12,7 +12,7 @@ my $manifest = "$tmpdir/MANIFEST";
END { unlink $manifest; unlink $nixfile; rmdir $tmpdir; }
-my $curl = "curl --fail --silent";
+my $curl = "@curl@ --fail --silent";
# Parse the command line.
@@ -30,10 +30,10 @@ foreach my $storeexpr (@ARGV) {
# Get all paths referenced by the normalisation of the given
# Nix expression.
- system "nix-store --realise $storeexpr > /dev/null";
+ system "@bindir@/nix-store --realise $storeexpr > /dev/null";
die if ($?);
- open PATHS, "nix-store --query --requisites --include-successors $storeexpr 2> /dev/null |" or die;
+ open PATHS, "@bindir@/nix-store --query --requisites --include-successors $storeexpr 2> /dev/null |" or die;
while (<PATHS>) {
chomp;
die "bad: $_" unless /^\//;
@@ -69,7 +69,7 @@ close NIX;
# Instantiate store expressions from the Nix expression.
my @storeexprs;
print STDERR "instantiating store expressions...\n";
-open STOREEXPRS, "nix-instantiate $nixfile |" or die "cannot run nix-instantiate";
+open STOREEXPRS, "@bindir@/nix-instantiate $nixfile |" or die "cannot run nix-instantiate";
while (<STOREEXPRS>) {
chomp;
die unless /^\//;
@@ -90,10 +90,10 @@ while (scalar @tmp > 0) {
my @tmp2 = @tmp[0..$n - 1];
@tmp = @tmp[$n..scalar @tmp - 1];
- system "nix-store --realise -B @tmp2 > /dev/null";
+ system "@bindir@/nix-store --realise -B @tmp2 > /dev/null";
if ($?) { die "`nix-store --realise' failed"; }
- open NARPATHS, "nix-store --query --list @tmp2 |" or die "cannot run nix";
+ open NARPATHS, "@bindir@/nix-store --query --list @tmp2 |" or die "cannot run nix";
while (<NARPATHS>) {
chomp;
die unless (/^\//);
@@ -135,7 +135,7 @@ for (my $n = 0; $n < scalar @storepaths; $n++) {
print MANIFEST " MD5: $hash\n";
if ($storepath =~ /\.store$/) {
- open PREDS, "nix-store --query --predecessors $storepath |" or die "cannot run nix";
+ open PREDS, "@bindir@/nix-store --query --predecessors $storepath |" or die "cannot run nix";
while (<PREDS>) {
chomp;
die unless (/^\//);