|
|
|
@ -9,7 +9,7 @@ let |
|
|
|
|
|
|
|
|
|
lib = makeExtensible (self: let |
|
|
|
|
callLibs = file: import file { lib = self; }; |
|
|
|
|
in with self; { |
|
|
|
|
in { |
|
|
|
|
|
|
|
|
|
# often used, or depending on very little |
|
|
|
|
trivial = callLibs ./trivial.nix; |
|
|
|
@ -54,7 +54,7 @@ let |
|
|
|
|
filesystem = callLibs ./filesystem.nix; |
|
|
|
|
|
|
|
|
|
# back-compat aliases |
|
|
|
|
platforms = systems.doubles; |
|
|
|
|
platforms = self.systems.doubles; |
|
|
|
|
|
|
|
|
|
# linux kernel configuration |
|
|
|
|
kernel = callLibs ./kernel.nix; |
|
|
|
@ -63,14 +63,14 @@ let |
|
|
|
|
deepSeq elem elemAt filter genericClosure genList getAttr |
|
|
|
|
hasAttr head isAttrs isBool isInt isList isString length |
|
|
|
|
lessThan listToAttrs pathExists readFile replaceStrings seq |
|
|
|
|
stringLength sub substring tail; |
|
|
|
|
inherit (trivial) id const pipe concat or and bitAnd bitOr bitXor |
|
|
|
|
bitNot boolToString mergeAttrs flip mapNullable inNixShell min max |
|
|
|
|
stringLength sub substring tail trace; |
|
|
|
|
inherit (self.trivial) id const pipe concat or and bitAnd bitOr bitXor |
|
|
|
|
bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max |
|
|
|
|
importJSON importTOML warn info showWarnings nixpkgsVersion version mod compare |
|
|
|
|
splitByAndCompare functionArgs setFunctionArgs isFunction toHexString toBaseDigits; |
|
|
|
|
inherit (fixedPoints) fix fix' converge extends composeExtensions |
|
|
|
|
inherit (self.fixedPoints) fix fix' converge extends composeExtensions |
|
|
|
|
makeExtensible makeExtensibleWithCustomName; |
|
|
|
|
inherit (attrsets) attrByPath hasAttrByPath setAttrByPath |
|
|
|
|
inherit (self.attrsets) attrByPath hasAttrByPath setAttrByPath |
|
|
|
|
getAttrFromPath attrVals attrValues getAttrs catAttrs filterAttrs |
|
|
|
|
filterAttrsRecursive foldAttrs collect nameValuePair mapAttrs |
|
|
|
|
mapAttrs' mapAttrsToList mapAttrsRecursive mapAttrsRecursiveCond |
|
|
|
@ -79,13 +79,13 @@ let |
|
|
|
|
recursiveUpdate matchAttrs overrideExisting getOutput getBin |
|
|
|
|
getLib getDev getMan chooseDevOutputs zipWithNames zip |
|
|
|
|
recurseIntoAttrs dontRecurseIntoAttrs; |
|
|
|
|
inherit (lists) singleton forEach foldr fold foldl foldl' imap0 imap1 |
|
|
|
|
inherit (self.lists) singleton forEach foldr fold foldl foldl' imap0 imap1 |
|
|
|
|
concatMap flatten remove findSingle findFirst any all count |
|
|
|
|
optional optionals toList range partition zipListsWith zipLists |
|
|
|
|
reverseList listDfs toposort sort naturalSort compareLists take |
|
|
|
|
drop sublist last init crossLists unique intersectLists |
|
|
|
|
subtractLists mutuallyExclusive groupBy groupBy'; |
|
|
|
|
inherit (strings) concatStrings concatMapStrings concatImapStrings |
|
|
|
|
inherit (self.strings) concatStrings concatMapStrings concatImapStrings |
|
|
|
|
intersperse concatStringsSep concatMapStringsSep |
|
|
|
|
concatImapStringsSep makeSearchPath makeSearchPathOutput |
|
|
|
|
makeLibraryPath makeBinPath optionalString |
|
|
|
@ -97,19 +97,19 @@ let |
|
|
|
|
nameFromURL enableFeature enableFeatureAs withFeature |
|
|
|
|
withFeatureAs fixedWidthString fixedWidthNumber isStorePath |
|
|
|
|
toInt readPathsFromFile fileContents; |
|
|
|
|
inherit (stringsWithDeps) textClosureList textClosureMap |
|
|
|
|
inherit (self.stringsWithDeps) textClosureList textClosureMap |
|
|
|
|
noDepEntry fullDepEntry packEntry stringAfter; |
|
|
|
|
inherit (customisation) overrideDerivation makeOverridable |
|
|
|
|
inherit (self.customisation) overrideDerivation makeOverridable |
|
|
|
|
callPackageWith callPackagesWith extendDerivation hydraJob |
|
|
|
|
makeScope; |
|
|
|
|
inherit (meta) addMetaAttrs dontDistribute setName updateName |
|
|
|
|
inherit (self.meta) addMetaAttrs dontDistribute setName updateName |
|
|
|
|
appendToName mapDerivationAttrset setPrio lowPrio lowPrioSet hiPrio |
|
|
|
|
hiPrioSet; |
|
|
|
|
inherit (sources) pathType pathIsDirectory cleanSourceFilter |
|
|
|
|
inherit (self.sources) pathType pathIsDirectory cleanSourceFilter |
|
|
|
|
cleanSource sourceByRegex sourceFilesBySuffices |
|
|
|
|
commitIdFromGitRepo cleanSourceWith pathHasContext |
|
|
|
|
canCleanSource pathIsRegularFile pathIsGitRepo; |
|
|
|
|
inherit (modules) evalModules unifyModuleSyntax |
|
|
|
|
inherit (self.modules) evalModules unifyModuleSyntax |
|
|
|
|
applyIfFunction mergeModules |
|
|
|
|
mergeModules' mergeOptionDecls evalOptionValue mergeDefinitions |
|
|
|
|
pushDownProperties dischargeProperties filterOverrides |
|
|
|
@ -119,21 +119,21 @@ let |
|
|
|
|
mkAliasAndWrapDefinitions fixMergeModules mkRemovedOptionModule |
|
|
|
|
mkRenamedOptionModule mkMergedOptionModule mkChangedOptionModule |
|
|
|
|
mkAliasOptionModule doRename; |
|
|
|
|
inherit (options) isOption mkEnableOption mkSinkUndeclaredOptions |
|
|
|
|
inherit (self.options) isOption mkEnableOption mkSinkUndeclaredOptions |
|
|
|
|
mergeDefaultOption mergeOneOption mergeEqualOption getValues |
|
|
|
|
getFiles optionAttrSetToDocList optionAttrSetToDocList' |
|
|
|
|
scrubOptionValue literalExample showOption showFiles |
|
|
|
|
unknownModule mkOption; |
|
|
|
|
inherit (types) isType setType defaultTypeMerge defaultFunctor |
|
|
|
|
inherit (self.types) isType setType defaultTypeMerge defaultFunctor |
|
|
|
|
isOptionType mkOptionType; |
|
|
|
|
inherit (asserts) |
|
|
|
|
inherit (self.asserts) |
|
|
|
|
assertMsg assertOneOf; |
|
|
|
|
inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn |
|
|
|
|
inherit (self.debug) addErrorContextToAttrs traceIf traceVal traceValFn |
|
|
|
|
traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq |
|
|
|
|
traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal |
|
|
|
|
traceShowValMarked showVal traceCall traceCall2 traceCall3 |
|
|
|
|
traceValIfNot runTests testAllTrue traceCallXml attrNamesToStr; |
|
|
|
|
inherit (misc) maybeEnv defaultMergeArg defaultMerge foldArgs |
|
|
|
|
inherit (self.misc) maybeEnv defaultMergeArg defaultMerge foldArgs |
|
|
|
|
maybeAttrNullable maybeAttr ifEnable checkFlag getValue |
|
|
|
|
checkReqs uniqList uniqListExt condConcat lazyGenericClosure |
|
|
|
|
innerModifySumArgs modifySumArgs innerClosePropagation |
|
|
|
@ -143,7 +143,7 @@ let |
|
|
|
|
mergeAttrsByFuncDefaultsClean mergeAttrBy |
|
|
|
|
fakeHash fakeSha256 fakeSha512 |
|
|
|
|
nixType imap; |
|
|
|
|
inherit (versions) |
|
|
|
|
inherit (self.versions) |
|
|
|
|
splitVersion; |
|
|
|
|
}); |
|
|
|
|
in lib |
|
|
|
|