summaryrefslogtreecommitdiffstats
path: root/lib/eval-source.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-24 00:45:59 +0000
committertv <tv@krebsco.de>2026-11-24 00:45:59 +0000
commit3d6f3fb92743861a750bd582a1c54bdd726f726b (patch)
treef01f3607847a395a77d91f00d1dfa2a4192921fa /lib/eval-source.nix
parent825da254d23988c04d4e4b94720f91fd2a0f82e0 (diff)
lib: drop evalSource
Diffstat (limited to 'lib/eval-source.nix')
-rw-r--r--lib/eval-source.nix21
1 files changed, 0 insertions, 21 deletions
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 <stockholm/lib>;
-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