1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* nix-install-package: install outPath, not drvPath, for now.

* nix-prefecth-url: print out in base-16.
This commit is contained in:
Eelco Dolstra 2005-03-11 15:27:37 +00:00
parent 08df443618
commit 536f324177
2 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@ die unless defined $pkgFile;
# from a web browser, the user gets to see us.
if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
$ENV{"NIX_HAVE_TERMINAL"} = "1";
$ENV{"LD_LIBRARY_PATH"} = "";
exec("xterm", "-e", "@shell@", "-c", "@bindir@/nix-install-package '$pkgFile' || read");
die "cannot execute `xterm'";
}
@ -43,7 +44,7 @@ system "@bindir@/nix-pull '$manifestURL'";
die if $? != 0;
print "\nInstalling package...\n";
system "@bindir@/nix-env -i '$drvPath'";
system "@bindir@/nix-env -i '$outPath'";
die if $? != 0;
print "\nInstallation succeeded! Press Enter to continue.\n";