* Syntax fixes.
* When pushing, put the hash in the file name so that the client can verify (proof-carrying file names?).
This commit is contained in:
parent
d5ee6f8700
commit
c7bdb76fe4
4 changed files with 32 additions and 17 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue