From e52ae1c0ffed6af893438cb456c5c38a272c8b21 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Mar 2005 11:12:48 +0000 Subject: * Use SHA-256 for nix-push. --- corepkgs/nar/nar.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'corepkgs/nar/nar.sh.in') diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in index d64cfd815..1a7c33ab2 100644 --- a/corepkgs/nar/nar.sh.in +++ b/corepkgs/nar/nar.sh.in @@ -10,8 +10,8 @@ dst=$out/tmp.nar.bz2 @bzip2@ < tmp > $dst -@bindir@/nix-hash -vvvvv --flat --type sha1 --base32 tmp > $out/nar-hash +@bindir@/nix-hash -vvvvv --flat --type $hashAlgo --base32 tmp > $out/nar-hash -@bindir@/nix-hash --flat --type sha1 --base32 $dst > $out/narbz2-hash +@bindir@/nix-hash --flat --type $hashAlgo --base32 $dst > $out/narbz2-hash mv $out/tmp.nar.bz2 $out/$(cat $out/narbz2-hash).nar.bz2 -- cgit v1.2.3