def path

ezx@1.11.0.0 · src/sha/dump.bend:120

import ezx@1.11.0.0/src/sha/dump.bend as Dump
import Base
import ezx@1.11.0.0/src/sha/nar.bend as Nar

120# the SRI narHash of a path, the same string `nix hash path --sri` prints
121def path(+work: String) -> IO(String):
122  do IO<String>:
123    node : String <- dump(work)
124    return Nar.sri(Nar.archive(node))

Uses (7)

Used by (1)