From 3a01525ae7f18b9d37fff95d1a4ee05133a3a733 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 6 Mar 2024 16:27:00 -0800 Subject: [PATCH] lib/generators: explicitly import names from `lib.trivial` Everything else was already imported. --- lib/generators.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/generators.nix b/lib/generators.nix index e8772f9d6486..c159a254bb75 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -14,7 +14,7 @@ * Documentation in the manual, #sec-generators */ { lib }: -with (lib).trivial; + let inherit (builtins) addErrorContext @@ -25,6 +25,7 @@ let filter head isAttrs + isBool isFloat isInt isList @@ -36,6 +37,7 @@ let replaceStrings split tail + typeOf ; inherit (lib.attrsets) @@ -65,6 +67,8 @@ let ; inherit (lib.trivial) + const + id isFunction # Note: not the builtin, considers `__functor` in attrsets. functionArgs # Note: not the builtin; considers `__functor` in attrsets. ;