summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-07-03 11:07:12 +0200
committerRobert Hensing <robert@roberthensing.nl>2024-07-03 11:16:31 +0200
commitfed26baf1e0ab95efb32a88d427b92e400298af7 (patch)
treee0d382da103f69aa94cfbee22cd473302fe05587 /lib
parentlib/modules: Memoize remaining lookups into lib (diff)
downloadnixpkgs-fed26baf1e0ab95efb32a88d427b92e400298af7.tar.gz
lib: Expose typeOf, unsafeGetAttrPos
All builtins should be in mirrored in lib, for consistency, as well as control to let the Nixpkgs pin effect *subtle* improvements in behavior (such as the foldl' accumulator strictness).
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 9c6f886c9ee4..ef0bb60ab8c5 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -66,7 +66,7 @@ let
# TODO: For consistency, all builtins should also be available from a sub-library;
# these are the only ones that are currently not
- inherit (builtins) addErrorContext isPath trace;
+ inherit (builtins) addErrorContext isPath trace typeOf unsafeGetAttrPos;
inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor
bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max
importJSON importTOML warn warnIf warnIfNot throwIf throwIfNot checkListOfEnum