summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #318712 from woojiq/lib-network-ipv6-parser•••lib.network: add ipv6 parserJanik2024-07-117-1/+424
|\
| * lib.network: ipv6 parser from string•••Add a library function to parse and validate an IPv6 address from a string. It can parse the first two versions of an IPv6 address according to https://datatracker.ietf.org/doc/html/rfc4291#section-2.2. The third form "x:x:x:x:x:x.d.d.d.d" is not yet implemented. Optionally parser can accept prefix length (128 is default). Add shell script network.sh to test IPv6 parser functionality. woojiq2024-06-295-0/+381
| * lib: add fromHexString•••Co-authored-by: lucasew <lucas59356@gmail.com> lucasew2024-06-283-1/+43
* | Merge pull request #324861 from Kranzes/crate2nix•••lib.systems: Fix setting rust.platform.os for wasm32-unknown-unknownFlorian Klink2024-07-081-0/+1
|\ \
| * | lib.systems: Fix setting rust.platform.os for wasm32-unknown-unknown•••Previously we would fallback to using `kernel` as the `os` which would result in using the wrong `os` value (`none`) when actually we want `unknown`. This seems to be a special case for wasm32-unknown-unknown and wasm64-unknown-unknown so I extended the if statement to support it. Ilan Joselevich2024-07-051-0/+1
* | | lib/licenses: fix field namesEmily2024-07-081-3/+3
|/ /
* | lib/modules: Memoize remaining lookups into builtins•••Similar to the previous commit about lookups into lib Main benefits - consistent - faster - shorter Robert Hensing2024-07-031-11/+17
* | lib: Expose typeOf, unsafeGetAttrPos•••All builtins should be in mirrored in lib, for consistency, as well as control to let the Nixpkgs pin effect *subtle* improvements in behavior (such as the foldl' accumulator strictness). Robert Hensing2024-07-031-1/+1
* | lib/modules: Memoize remaining lookups into lib•••Benefits: - some lookups happened in the hot path, and will now be slightly faster, with only a variable lookup and no attribute selection - it's now harder to accidentally use args.lib aka specialArgs.lib, which has happened - shorter Robert Hensing2024-07-031-21/+25
* | lib/modules: Memoize functionArgs lookup•••This would also make specialArgs-lib.nix pass. Robert Hensing2024-07-031-1/+2
* | lib/modules: Memoize addErrorContext lookupRobert Hensing2024-07-031-6/+7
* | lib/modules: Use fixed lib instead of args.lib•••The practical use for this should be very limited because I don't think anyone should change `lib`, let alone change `lib.functionArgs`, but, but it would be even stranger to rely on `args.lib` (or really `specialArgs.lib` for what's clearly a behavior of the current `evalModules`, which uses its own ambient lib for basically everything. The shadowing of `lib` by `args.lib` here seems to be a small mistake, which is easy to make. Robert Hensing2024-07-033-2/+32
* | lib.types: remove __attrsFailEvaluation•••The test (`nix-build pkgs/test/release/default.nix`) continues to pass without this preventative measure. Philip Taron2024-07-011-1/+0
* | Merge pull request #323657 from wegank/23.11-unmaintained•••23.11 is unmaintainedJörg Thalheim2024-07-011-1/+1
|\ \
| * | lib/trivial: update oldestSupportedReleaseWeijia Wang2024-07-011-1/+1
| |/
* | Merge pull request #319153 from Kranzes/buildRustCrate-wasm•••buildRustCrate: add support for compiling to wasm32-unknown-unknownFlorian Klink2024-06-303-18/+28
|\ \ | |/ |/|
| * lib.systems.examples: add wasm32-unknown-none•••This system was added to use the nixpkgs cross compilation logic when compiling to wasm32-unknown-unknown in rust. Ilan Joselevich2024-06-243-18/+28
* | lib/cli: improve documentation, including arguments (#315820)•••cli.nix: improve documentation, including argumentsSilvan Mosberger2024-06-281-36/+71
|\ \
| * | cli.nix: improve documentation, including argumentsRob Pilling2024-05-301-36/+71
* | | lib: deprecate mkPackageOptionMDéclairevoyant2024-06-261-3/+3
* | | lib.meta: refactor to use doc-comments (#313589)•••* doc: use doc-comments for lib.meta * adds missing argument to setPrioJohannes Kirschbauer2024-06-261-72/+283
* | | Merge pull request #312412 from hsjobeki/doc/lib-gvariant•••doc: migrate lib.gvariant to doc-comment formatSilvan Mosberger2024-06-261-91/+314
|\ \ \
| * | | doc: migrate lib.gvariant to doc-comment formatJohannes Kirschbauer2024-05-171-91/+314
* | | | Merge pull request #312407 from hsjobeki/doc/lib-generators•••doc: init lib.generators reference documentationSilvan Mosberger2024-06-261-193/+397
|\ \ \ \
| * | | | doc: add arguments for toKeyValueJohannes Kirschbauer2024-05-211-2/+14
| * | | | doc: init lib.generators reference documentationJohannes Kirschbauer2024-05-211-193/+385
| |/ / /
* | | | doc: migrate lib.filesystem to doc-comment format (#312222)•••* doc: migrate lib.filesystem to doc-comment format * defintion list fixes lib/filesystem.nix Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> --------- Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>Johannes Kirschbauer2024-06-261-67/+167
* | | | Merge pull request #312217 from hsjobeki/doc/lib-derivations•••doc: migrate lib.derivations to doc-comment formatSilvan Mosberger2024-06-261-35/+67
|\ \ \ \
| * | | | Apply suggestions from code review•••Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> Johannes Kirschbauer2024-05-211-16/+16
| * | | | doc: migrate lib.derivations to doc-comment formatJohannes Kirschbauer2024-05-161-35/+67
| |/ / /
* | | | Merge pull request #319139 from NyCodeGHG/android-ndks•••android-ndks: add 25, 26 ndks, update default ndk and sdkArtturin2024-06-231-6/+6
|\ \ \ \
| * | | | lib.systems.examples: update default android sdk to 33, ndk to 26Marie Ramlow2024-06-171-6/+6
* | | | | Merge pull request #318101 from getchoo/pkgs/gitbutler/init•••gitbutler: init at 0.12.2Aleksana2024-06-221-0/+7
|\ \ \ \ \
| * | | | | licenses: add FSL-1.1-MITseth2024-06-071-0/+7
| | |_|/ / | |/| | |
* | | | | lib: Add a TODO for builtins not available in sub-librariesSilvan Mosberger2024-06-201-3/+3
* | | | | lib.replaceStrings: inherit from lib.stringsSilvan Mosberger2024-06-201-2/+1
* | | | | lib.readFile: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.genericClosure: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.pathExists: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.getAttr: inherit from lib.attrsetsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.isString: inherit from lib.stringsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.isList: inherit from lib.listsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.isInt: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.isBool: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.isAttrs: inherit from lib.attrsetsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.hasAttr: inherit from lib.attrsetsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.elemAt: inherit from lib.listsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.elem: inherit from lib.listsSilvan Mosberger2024-06-201-2/+2
* | | | | lib.deepSeq: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2
* | | | | lib.sub: inherit from lib.trivialSilvan Mosberger2024-06-201-2/+2