mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
* Argh, another short-write problem. Added wrappers around
read()/write() to fix this once and for all.
This commit is contained in:
parent
667a6afb9d
commit
7984cfc7c1
9 changed files with 46 additions and 36 deletions
|
@ -15,6 +15,9 @@ $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"; }
|
||||
|
||||
my $pkgdir = `nix -qph $hash`;
|
||||
if ($?) { die "`nix -qph' failed"; }
|
||||
chomp $pkgdir;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue