Skip to content

Instantly share code, notes, and snippets.

@philiptaron
Last active March 11, 2024 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philiptaron/04326000d5ff20cb72c2805efd09701c to your computer and use it in GitHub Desktop.
Save philiptaron/04326000d5ff20cb72c2805efd09701c to your computer and use it in GitHub Desktop.

Here are there set of names exported from lib/default.nix. These are usually accessed from the injected lib parameter.

This list was produced by running nix eval --json --apply builtins.attrNames nixpkgs#lib | jq -r '.[]'.

__unfix__
add
addContextFrom
addErrorContext
addMetaAttrs
all
allUnique
and
any
appendToName
applyModuleArgsIfFunction
assertMsg
assertOneOf
asserts
attrByPath
attrNames
attrVals
attrValues
attrsToList
attrsets
bitAnd
bitNot
bitOr
bitXor
boolToString
callPackageWith
callPackagesWith
canCleanSource
cartesianProductOfSets
catAttrs
checkFlag
checkListOfEnum
checkReqs
chooseDevOutputs
cleanSource
cleanSourceFilter
cleanSourceWith
cli
closePropagation
cmakeBool
cmakeFeature
cmakeOptionType
collect
commitIdFromGitRepo
compare
compareLists
composeExtensions
composeManyExtensions
concat
concatImapStrings
concatImapStringsSep
concatLines
concatLists
concatMap
concatMapAttrs
concatMapStrings
concatMapStringsSep
concatStrings
concatStringsSep
condConcat
const
converge
count
crossLists
customisation
debug
deepSeq
defaultFunctor
defaultMerge
defaultMergeArg
defaultTypeMerge
derivations
dischargeProperties
doRename
dontDistribute
dontRecurseIntoAttrs
drop
elem
elemAt
enableFeature
enableFeatureAs
escape
escapeRegex
escapeShellArg
escapeShellArgs
escapeURL
escapeXML
evalModules
evalOptionValue
extend
extendDerivation
extends
fakeHash
fakeSha256
fakeSha512
fetchers
fileContents
fileset
filesystem
filter
filterAttrs
filterAttrsRecursive
filterOverrides
findFirst
findSingle
fix
fix'
fixMergeModules
fixedPoints
fixedWidthNumber
fixedWidthString
fixupOptionType
flatten
flip
fold
foldArgs
foldAttrs
foldl
foldl'
foldlAttrs
foldr
forEach
fullDepEntry
functionArgs
genAttrs
genList
generators
genericClosure
getAttr
getAttrFromPath
getAttrs
getBin
getDev
getExe
getExe'
getFiles
getLib
getLicenseFromSpdxId
getMan
getName
getOutput
getValue
getValues
getVersion
groupBy
groupBy'
gvariant
hasAttr
hasAttrByPath
hasInfix
hasPrefix
hasSuffix
head
hiPrio
hiPrioSet
hydraJob
id
ifEnable
imap
imap0
imap1
importJSON
importTOML
inNixShell
inPureEvalMode
info
init
innerClosePropagation
innerModifySumArgs
intersectLists
intersperse
isAttrs
isBool
isDerivation
isFloat
isFunction
isInOldestRelease
isInt
isList
isOption
isOptionType
isPath
isStorePath
isString
isStringLike
isType
isValidPosixName
kernel
last
lazyDerivation
lazyGenericClosure
length
lessThan
licenses
listDfs
listToAttrs
lists
literalExample
literalExpression
literalMD
lowPrio
lowPrioSet
lowerChars
maintainers
makeBinPath
makeExtensible
makeExtensibleWithCustomName
makeLibraryPath
makeOverridable
makeScope
makeScopeWithSplicing
makeScopeWithSplicing'
makeSearchPath
makeSearchPathOutput
mapAttrs
mapAttrs'
mapAttrsFlatten
mapAttrsRecursive
mapAttrsRecursiveCond
mapAttrsToList
mapDerivationAttrset
mapNullable
matchAttrs
max
maybeAttr
maybeAttrNullable
maybeEnv
mdDoc
mergeAttrBy
mergeAttrByFunc
mergeAttrs
mergeAttrsByFuncDefaults
mergeAttrsByFuncDefaultsClean
mergeAttrsConcatenateValues
mergeAttrsList
mergeAttrsNoOverride
mergeAttrsWithFunc
mergeDefaultOption
mergeDefinitions
mergeEqualOption
mergeModules
mergeModules'
mergeOneOption
mergeOptionDecls
mergeUniqueOption
mesonBool
mesonEnable
mesonOption
meta
min
mirrorFunctionArgs
misc
mkAfter
mkAliasAndWrapDefinitions
mkAliasDefinitions
mkAliasOptionModule
mkAliasOptionModuleMD
mkAssert
mkBefore
mkChangedOptionModule
mkDefault
mkDerivedConfig
mkEnableOption
mkFixStrictness
mkForce
mkIf
mkImageMediaOverride
mkMerge
mkMergedOptionModule
mkOption
mkOptionDefault
mkOptionType
mkOrder
mkOverride
mkPackageOption
mkPackageOptionMD
mkRemovedOptionModule
mkRenamedOptionModule
mkRenamedOptionModuleWith
mkSinkUndeclaredOptions
mkVMOverride
mod
modifySumArgs
modules
mutuallyExclusive
nameFromURL
nameValuePair
naturalSort
nixType
nixpkgsVersion
noDepEntry
nvs
optionAttrSetToDocList
optionAttrSetToDocList'
optional
optionalAttrs
optionalDrvAttr
optionalString
optionals
options
or
overrideDerivation
overrideExisting
packEntry
packagesFromDirectoryRecursive
partition
path
pathExists
pathHasContext
pathIsDirectory
pathIsGitRepo
pathIsRegularFile
pathType
pipe
platforms
pushDownProperties
range
readFile
readPathsFromFile
recurseIntoAttrs
recursiveUpdate
recursiveUpdateUntil
remove
removePrefix
removeSuffix
replaceChars
replaceStrings
replicate
reverseList
runTests
scrubOptionValue
seq
setAttr
setAttrByPath
setAttrMerge
setDefaultModuleLocation
setFunctionArgs
setName
setPrio
setType
showAttrPath
showFiles
showOption
showOptionWithDefLocs
showWarnings
singleton
sort
sortOn
sortProperties
sourceByRegex
sourceFilesBySuffices
sourceTypes
sources
splitByAndCompare
splitString
splitVersion
stringAfter
stringAsChars
stringLength
stringToCharacters
strings
stringsWithDeps
sub
sublist
substring
subtractLists
systems
tail
take
teams
testAllTrue
textClosureList
textClosureMap
throwIf
throwIfNot
toBaseDigits
toDerivation
toFunction
toHexString
toInt
toIntBase10
toList
toLower
toShellVar
toShellVars
toUpper
toposort
trace
traceFnSeqN
traceIf
traceSeq
traceSeqN
traceVal
traceValFn
traceValSeq
traceValSeqFn
traceValSeqN
traceValSeqNFn
trivial
types
unifyModuleSyntax
uniqList
uniqListExt
unique
unknownModule
updateManyAttrsByPath
updateName
upperChars
version
versionAtLeast
versionOlder
versions
warn
warnIf
warnIfNot
withFeature
withFeatureAs
zip
zipAttrs
zipAttrsWith
zipAttrsWithNames
zipLists
zipListsWith
zipWithNames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment