mirror of
https://github.com/NixOS/nix.git
synced 2025-02-18 09:52:31 +00:00
![Daniel Schaefer](/assets/img/avatar_default.png)
For text files it is possible to do it like so: `builtins.hashString "sha256" (builtins.readFile /tmp/a)` but that doesn't work for binary files. With builtins.hashFile any kind of file can be conveniently hashed.
1.0 KiB
1.0 KiB