diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-01-14T11·13+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-01-14T11·13+0000 |
commit | 16f9b133ec8c1fc6226d486e5170dd3a43aa35a7 (patch) | |
tree | b3f7481aa593066a88bcf052d7299282b98daf7c /scripts/nix-install-package.in | |
parent | ff9af107d3aa1362af906972c490773eeaaad4b5 (diff) |
* Improved `nix-push': it now uses HTTP PUT (instead of rsync) to copy
files. Target location is no longer hard-coded; it accepts a number of URLs on the command line. * `nix-install-package': compatibility fixes.
Diffstat (limited to 'scripts/nix-install-package.in')
-rw-r--r-- | scripts/nix-install-package.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in index 4988606c3a20..c71a6ca5fdee 100644 --- a/scripts/nix-install-package.in +++ b/scripts/nix-install-package.in @@ -12,26 +12,26 @@ until mkdir $tmpdir, 0777; # !!! remove tmpdir on exit -print "unpacking $pkgfile in $tmpdir...\n"; +print "Unpacking $pkgfile in $tmpdir...\n"; system "bunzip2 < $pkgfile | (cd $tmpdir && tar xf -)"; die if $?; -print "this package contains the following derivations:\n"; -system "nix-env -qsf $tmpdir/default.nix"; +print "This package contains the following derivations:\n"; +system "nix-env -qasf $tmpdir/default.nix"; die if $?; -print "do you wish to install them (y/n)? "; +print "Do you wish to install these (Y/N)? "; my $reply = <STDIN>; chomp $reply; exit if (!($reply eq "y")); -print "pulling caches...\n"; +print "Pulling caches...\n"; system "nix-pull `cat $tmpdir/caches`"; die if $?; -print "installing package...\n"; -system "nix-env -i $tmpdir/default.nix '*'"; +print "Installing package...\n"; +system "nix-env -if $tmpdir/default.nix '*'"; die if $?; -print "installing succeeded! (enter to continue)\n"; +print "Installation succeeded! Press Enter to continue.\n"; <STDIN>; |