* nix-push: no need to compute the NAR hash, since the Nix database

already has it (`nix-store -q --hash').
This commit is contained in:
Eelco Dolstra 2010-11-17 12:51:54 +00:00
parent e60c962fb8
commit 5693b8a7e2
2 changed files with 5 additions and 9 deletions

View file

@ -7,8 +7,6 @@ dst=$out/tmp.nar.bz2
@bzip2@ < tmp > $dst
@bindir@/nix-hash -vvvvv --flat --type $hashAlgo --base32 tmp > $out/nar-hash
@bindir@/nix-hash --flat --type $hashAlgo --base32 $dst > $out/narbz2-hash
@coreutils@/mv $out/tmp.nar.bz2 $out/$(@coreutils@/cat $out/narbz2-hash).nar.bz2