mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-25 23:17:44 +00:00
Expose call function to HTMNIX files
This commit is contained in:
parent
7d740ae755
commit
bd30355f48
1 changed files with 7 additions and 2 deletions
|
@ -29,6 +29,13 @@
|
||||||
in {
|
in {
|
||||||
inherit (escapix) raw;
|
inherit (escapix) raw;
|
||||||
|
|
||||||
|
call = builtins.scopedImport {
|
||||||
|
inherit (self) raw call __findFile;
|
||||||
|
inherit (nixpkgslib) lib;
|
||||||
|
};
|
||||||
|
|
||||||
|
result = self.call /${builtins.getEnv "TARGET_FILE"};
|
||||||
|
|
||||||
__findFile = _: name: {
|
__findFile = _: name: {
|
||||||
outPath = dottedNameToTag name;
|
outPath = dottedNameToTag name;
|
||||||
|
|
||||||
|
@ -73,7 +80,5 @@
|
||||||
outPath = "${this}${next}";
|
outPath = "${this}${next}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
result = builtins.scopedImport { inherit (self) raw __findFile; inherit (nixpkgslib) lib; } /${builtins.getEnv "TARGET_FILE"};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue