From 7e8961f72056f53ccf78eba0ee8c240bc2310ab8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Jan 2005 17:39:26 +0000 Subject: * Added SHA-1 support. `nix-hash' now has an option `--type sha1' to select SHA-1 hashing. --- src/libexpr/primops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr/primops.cc') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index fe9a601ea..f73e60e38 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -262,7 +262,7 @@ static Expr primDerivation(EvalState & state, const ATermVector & _args) /* Write the resulting term into the Nix store directory. */ Hash drvHash = outHashGiven - ? hashString((string) outHash + outPath) + ? hashString((string) outHash + outPath, htMD5) : hashDerivation(state, ne); Path drvPath = writeTerm(unparseStoreExpr(ne), "-d-" + drvName); -- cgit v1.2.3