Skip to content

Commit

Permalink
feat: implement cell block introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityAnomaly authored and blaggacao committed Aug 8, 2023
1 parent 10270dc commit 8025cff
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion grow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,18 @@
blockP = paths.cellBlockPath cellP cellBlock;
isFile = l.pathExists blockP.file;
isDir = l.pathExists blockP.dir;
signature = _ImportSignatureFor res.output cellP.flake; # recursion on cell
signature = let
# pass through the current cell and cell block names for introspection
outputMeta =
res.output
// {
__std = {
inherit cellName;
cellBlockName = cellBlock.name;
};
};
in
_ImportSignatureFor outputMeta cellP.flake; # recursion on cell
import' = {
displayPath,
importPath,
Expand Down

0 comments on commit 8025cff

Please sign in to comment.