From 160928be5dc7057777c59d98549046361e3060f2 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 24 Jan 2024 19:09:22 +0900 Subject: fix(lib): fix attrs --- lib/default.nix | 2 +- lib/modules.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 8e95c8c..d437dc6 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -6,7 +6,7 @@ let modules = import ./modules.nix { inherit lib; - self.attrs = import ./attrs.nix { inherit lib; self = { }; }; + self.lib.attrs = import ./attrs.nix { inherit lib; self = { }; }; }; mylib = makeExtensible (self: diff --git a/lib/modules.nix b/lib/modules.nix index ef7c289..64ae724 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -3,7 +3,7 @@ let inherit (builtins) attrValues readDir pathExists concatLists; inherit (lib) id mapAttrsToList filterAttrs hasPrefix hasSuffix nameValuePair removeSuffix; - inherit (self.attrs) mapFilterAttrs; + inherit (self.lib.attrs) mapFilterAttrs; in rec { mapModules = dir: fn: -- cgit 1.4.1