Loading lib/default.nix +19 −2 Original line number Diff line number Diff line Loading @@ -105,12 +105,14 @@ let # network network = callLibs ./network; # flakes flakes = callLibs ./flakes.nix; inherit (builtins) getContext hasContext convertHash hashString hasFile parseDrvName placeholder fromJSON Loading Loading @@ -391,6 +393,8 @@ let toInt toIntBase10 fileContents appendContext unsafeDiscardStringContext ; inherit (self.stringsWithDeps) textClosureList Loading @@ -415,7 +419,13 @@ let renameCrossIndexTo mapCrossIndex ; inherit (self.derivations) lazyDerivation optionalDrvAttr warnOnInstantiate; inherit (self.derivations) lazyDerivation optionalDrvAttr warnOnInstantiate addDrvOutputDependencies unsafeDiscardOutputDependency ; inherit (self.generators) mkLuaInline; inherit (self.meta) addMetaAttrs Loading Loading @@ -443,6 +453,9 @@ let dirOf isPath packagesFromDirectoryRecursive hashFile readDir readFileType ; inherit (self.sources) cleanSourceFilter Loading Loading @@ -593,6 +606,10 @@ let inherit (self.network.ipv6) mkEUI64Suffix ; inherit (self.flakes) parseFlakeRef flakeRefToString ; } ); in Loading lib/derivations.nix +5 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,11 @@ let if pkg ? meta.position && isString pkg.meta.position then "${prefix}${pkg.meta.position}" else ""; in { inherit (builtins) addDrvOutputDependencies unsafeDiscardOutputDependency ; /** Restrict a derivation to a predictable set of attribute names, so that the returned attrset is not strict in the actual derivation, Loading lib/filesystem.nix +6 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,12 @@ in isPath ; inherit (builtins) readDir readFileType hashFile ; /** The type of a path. The path needs to exist and be accessible. The result is either `"directory"` for a directory, `"regular"` for a Loading lib/flakes.nix 0 → 100644 +12 −0 Original line number Diff line number Diff line /** Flake operations. */ { lib }: { inherit (builtins) parseFlakeRef flakeRefToString ; } lib/strings.nix +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ rec { toJSON typeOf unsafeDiscardStringContext appendContext ; /** Loading Loading
lib/default.nix +19 −2 Original line number Diff line number Diff line Loading @@ -105,12 +105,14 @@ let # network network = callLibs ./network; # flakes flakes = callLibs ./flakes.nix; inherit (builtins) getContext hasContext convertHash hashString hasFile parseDrvName placeholder fromJSON Loading Loading @@ -391,6 +393,8 @@ let toInt toIntBase10 fileContents appendContext unsafeDiscardStringContext ; inherit (self.stringsWithDeps) textClosureList Loading @@ -415,7 +419,13 @@ let renameCrossIndexTo mapCrossIndex ; inherit (self.derivations) lazyDerivation optionalDrvAttr warnOnInstantiate; inherit (self.derivations) lazyDerivation optionalDrvAttr warnOnInstantiate addDrvOutputDependencies unsafeDiscardOutputDependency ; inherit (self.generators) mkLuaInline; inherit (self.meta) addMetaAttrs Loading Loading @@ -443,6 +453,9 @@ let dirOf isPath packagesFromDirectoryRecursive hashFile readDir readFileType ; inherit (self.sources) cleanSourceFilter Loading Loading @@ -593,6 +606,10 @@ let inherit (self.network.ipv6) mkEUI64Suffix ; inherit (self.flakes) parseFlakeRef flakeRefToString ; } ); in Loading
lib/derivations.nix +5 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,11 @@ let if pkg ? meta.position && isString pkg.meta.position then "${prefix}${pkg.meta.position}" else ""; in { inherit (builtins) addDrvOutputDependencies unsafeDiscardOutputDependency ; /** Restrict a derivation to a predictable set of attribute names, so that the returned attrset is not strict in the actual derivation, Loading
lib/filesystem.nix +6 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,12 @@ in isPath ; inherit (builtins) readDir readFileType hashFile ; /** The type of a path. The path needs to exist and be accessible. The result is either `"directory"` for a directory, `"regular"` for a Loading
lib/flakes.nix 0 → 100644 +12 −0 Original line number Diff line number Diff line /** Flake operations. */ { lib }: { inherit (builtins) parseFlakeRef flakeRefToString ; }
lib/strings.nix +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ rec { toJSON typeOf unsafeDiscardStringContext appendContext ; /** Loading