lib: re-export missing builtins in lib (#482743)

This commit is contained in:
Johannes Kirschbauer 2026-01-23 09:34:19 +00:00 committed by GitHub
commit c6578a37be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 38 additions and 1 deletions

View file

@ -105,6 +105,22 @@ let
# network
network = callLibs ./network;
inherit (builtins)
getContext
hasContext
convertHash
hashString
hasFile
parseDrvName
placeholder
fromJSON
fromTOML
toFile
toJSON
toString
toXML
tryEval
;
inherit (self.trivial)
id
const
@ -112,6 +128,8 @@ let
concat
"or"
and
mul
div
xor
bitAnd
bitOr
@ -163,6 +181,8 @@ let
pathExists
genericClosure
readFile
ceil
floor
;
inherit (self.fixedPoints)
fix
@ -327,7 +347,6 @@ let
escape
escapeShellArg
escapeShellArgs
isPath
isStorePath
isStringLike
isValidPosixName
@ -420,6 +439,9 @@ let
pathType
pathIsDirectory
pathIsRegularFile
baseNameOf
dirOf
isPath
packagesFromDirectoryRecursive
;
inherit (self.sources)
@ -434,6 +456,7 @@ let
pathIsGitRepo
revOrTag
repoRevToName
filterSource
;
inherit (self.modules)
evalModules
@ -564,6 +587,7 @@ let
imap
;
inherit (self.versions)
compareVersions
splitVersion
;
inherit (self.network.ipv6)

View file

@ -25,6 +25,11 @@ let
in
{
inherit (builtins)
baseNameOf
dirOf
isPath
;
/**
The type of a path. The path needs to exist and be accessible.

View file

@ -529,4 +529,6 @@ in
trace
;
inherit (builtins) filterSource;
}

View file

@ -27,6 +27,8 @@ in
isFloat
add
sub
mul
div
lessThan
seq
deepSeq
@ -34,6 +36,8 @@ in
bitAnd
bitOr
bitXor
ceil
floor
;
## Simple (higher order) functions

View file

@ -3,6 +3,8 @@
rec {
inherit (builtins) compareVersions;
/**
Break a version string into its component parts.