From 3d6f3fb92743861a750bd582a1c54bdd726f726b Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 24 Nov 2026 00:45:59 +0000 Subject: lib: drop evalSource --- lib/eval-source.nix | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 lib/eval-source.nix (limited to 'lib/eval-source.nix') diff --git a/lib/eval-source.nix b/lib/eval-source.nix deleted file mode 100644 index ff853185..00000000 --- a/lib/eval-source.nix +++ /dev/null @@ -1,21 +0,0 @@ -with import ; -let - eval = _file: source: evalModules { - modules = singleton { - inherit _file; - imports = map (source: { inherit source; }) (toList source); - options.source = mkOption { - type = types.attrsOf types.source; - default = {}; - }; - }; - }; - sanitize = x: getAttr (typeOf x) { - set = mapAttrs - (const sanitize) - (filterAttrs (name: value: name != "_module" && value != null) x); - string = x; - }; -in - # This function's return value can be used as pkgs.populate input. - _file: source: sanitize (eval _file source).config.source -- cgit v1.3.1