From bd30355f48dd719f058b67dc4bdf53f01e20c8c9 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 28 Feb 2024 13:18:17 +0300 Subject: [PATCH] Expose call function to HTMNIX files --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ec65cf0..0b80cd5 100644 --- a/flake.nix +++ b/flake.nix @@ -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"}; }; }