def regular
import ezx@1.11.0.0/src/sha/nar.bend as Narimport Base
import ezx@1.11.0.0/src/share/sha.bend as Sha
63# a regular file's node, marked executable when it is
64def regular(ex: Bool, +contents: String) -> String:
65 str("(") ++ str("type") ++ str("regular") ++ exec.fields(ex)
66 ++ str("contents") ++ str(Sha.utf8(contents)) ++ str(")")