From 5a886290e817129d4c93d5d1fa27b27e5888b608 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 28 Feb 2024 13:31:14 +0300 Subject: [PATCH] Add withDoctype helper --- flake.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a680992..7ee5758 100644 --- a/flake.nix +++ b/flake.nix @@ -31,10 +31,11 @@ in { inherit (escapix) raw; - call = builtins.scopedImport { - inherit (self) raw call __findFile; + call = builtins.scopedImport (self // { inherit lib; - }; + }); + + withDoctype = body: "${body}"; result = self.call /${builtins.getEnv "TARGET_FILE"};