* Really fix the substitute mechanism, i.e., ensure the closure
invariant by registering references through the manifest. * Added a test for nix-pull.
This commit is contained in:
parent
c6290e42bc
commit
066da4ab85
16 changed files with 255 additions and 89 deletions
|
|
@ -10,10 +10,6 @@ dst=$out/$(basename $path).nar.bz2
|
|||
|
||||
@bzip2@ < tmp > $dst
|
||||
|
||||
narHash=$(md5sum -b tmp | cut -c1-32)
|
||||
if test $? != 0; then exit 1; fi
|
||||
echo $narHash > $out/nar-hash
|
||||
@bindir@/nix-hash -vvvvv --flat --type sha1 --base32 tmp > $out/nar-hash
|
||||
|
||||
narbz2Hash=$(md5sum -b $dst | cut -c1-32)
|
||||
if test $? != 0; then exit 1; fi
|
||||
echo $narbz2Hash > $out/narbz2-hash
|
||||
@bindir@/nix-hash --flat --type sha1 --base32 $dst > $out/narbz2-hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue