diff options
Diffstat (limited to 'scripts/nix-switch.in')
-rwxr-xr-x | scripts/nix-switch.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nix-switch.in b/scripts/nix-switch.in index 2ccb6b4e5786..ddaca4e227ad 100755 --- a/scripts/nix-switch.in +++ b/scripts/nix-switch.in @@ -15,11 +15,11 @@ $hash || die "no package hash specified"; my $linkdir = "@localstatedir@/nix/links"; # Build the specified package, and all its dependencies. -system "nix -ih $hash"; -if ($?) { die "`nix -ih' failed"; } +system "nix --install $hash"; +if ($?) { die "`nix --install' failed"; } -my $pkgdir = `nix -qph $hash`; -if ($?) { die "`nix -qph' failed"; } +my $pkgdir = `nix --query --list $hash`; +if ($?) { die "`nix --query --list' failed"; } chomp $pkgdir; # Figure out a generation number. |