commit d8d558fc6dadc561381e06b0411b5a57a08927df
parent ec6350fd9353e7f27ce0e85d31f82e3ed73e4d70
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 11 May 2025 16:26:41 +0200
parent ec6350fd9353e7f27ce0e85d31f82e3ed73e4d70
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 11 May 2025 16:26:41 +0200
src/load: add pov, povSelf, name
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/load.nix b/src/load.nix @@ -79,6 +79,9 @@ let (head matches).loader (inputs // { inherit self; + name = name; + povSelf = tree.pov ++ [ name ]; + pov = tree.pov; super = getAttrFromPath tree.pov (view tree); root = view tree; }) @@ -120,7 +123,7 @@ in assert all (name: inputs ? ${name} -> throw "'${name}' cannot be used as the name of an input") - [ "self" "super" "root" ]; + [ "self" "super" "root" "name" "povSelf" "pov" ]; view { pov = "external";