Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: f9a2ea44867c
Choose a base ref
...
head repository: NixOS/nix
compare: 7becb1bf1c2e
Choose a head ref
  • 2 commits
  • 9 files changed
  • 2 contributors

Commits on May 3, 2019

  1. Add builtins.hashFile

    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.
    JohnAZoidberg committed May 3, 2019
    Copy the full SHA
    3f192ac View commit details
    Browse the repository at this point in the history

Commits on May 7, 2019

  1. Merge pull request #2792 from JohnAZoidberg/builtins-hash-file

    Add builtins.hashFile
    edolstra committed May 7, 2019
    4
    Copy the full SHA
    7becb1b View commit details
    Browse the repository at this point in the history