1
Fork 0
mirror of https://github.com/RGBCube/HTMNIX synced 2025-07-24 22:47:43 +00:00

Expose call function to HTMNIX files

This commit is contained in:
RGBCube 2024-02-28 13:18:17 +03:00
parent 7d740ae755
commit bd30355f48
No known key found for this signature in database

View file

@ -29,6 +29,13 @@
in {
inherit (escapix) raw;
call = builtins.scopedImport {
inherit (self) raw call __findFile;
inherit (nixpkgslib) lib;
};
result = self.call /${builtins.getEnv "TARGET_FILE"};
__findFile = _: name: {
outPath = dottedNameToTag name;
@ -73,7 +80,5 @@
outPath = "${this}${next}";
};
};
result = builtins.scopedImport { inherit (self) raw __findFile; inherit (nixpkgslib) lib; } /${builtins.getEnv "TARGET_FILE"};
};
}