lib: re-export missing builtins in lib (#482743)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -25,6 +25,11 @@ let
|
||||
in
|
||||
|
||||
{
|
||||
inherit (builtins)
|
||||
baseNameOf
|
||||
dirOf
|
||||
isPath
|
||||
;
|
||||
|
||||
/**
|
||||
The type of a path. The path needs to exist and be accessible.
|
||||
|
||||
@@ -529,4 +529,6 @@ in
|
||||
|
||||
trace
|
||||
;
|
||||
|
||||
inherit (builtins) filterSource;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
rec {
|
||||
|
||||
inherit (builtins) compareVersions;
|
||||
|
||||
/**
|
||||
Break a version string into its component parts.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user