hashFile
builtins.hashFile
Primop
Docs pulled from | This Revision | 1 day ago
Takes 2 arguments
type, p
Return a base-16 representation of the cryptographic hash of the
file at path p. The hash algorithm specified by type must be one
of "md5"
, "sha1"
, "sha256"
or "sha512"
.
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Detected Type
hashFile :: String -> Path -> String
Implementation
This function is implemented in c++ and is part of the native nix runtime.