def path
import ezx@1.11.0.0/src/sha/dump.bend as Dumpimport 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))