diff options
Diffstat (limited to 'src/nix-hash/nix-hash.cc')
-rw-r--r-- | src/nix-hash/nix-hash.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-hash/nix-hash.cc b/src/nix-hash/nix-hash.cc index 6a044972afb7..360e07960b0e 100644 --- a/src/nix-hash/nix-hash.cc +++ b/src/nix-hash/nix-hash.cc @@ -25,6 +25,7 @@ void run(Strings args) if (i == args.end()) throw UsageError("`--type' requires an argument"); if (*i == "md5") ht = htMD5; else if (*i == "sha1") ht = htSHA1; + else if (*i == "sha256") ht = htSHA256; else throw UsageError(format("unknown hash type `%1%'") % *i); } else |