Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-08-25 | lib.meta: Minor SPDX license function improvements | Silvan Mosberger | 1 | -1/+2 | |
- Expose `lib.licensesSpdx` - Create bindings for the needed internal functions - Mention that some SPDX licenses might be missing (in the future I hope we can autogenerate the Nixpkgs license list from some SPDX endpoint | |||||
2024-07-25 | lib.strings: add `trim` and `trimWith` | Matt Sturgeon | 1 | -1/+1 | |
`strings.trim` returns a copy of the string with all leading and trailing whitespace removed. `strings.trimWith` does the same thing, but calling code can decide whether to trim the start and/or end of the string. | |||||
2024-07-25 | Merge pull request #149990 from ShamrockLee/lib-spdx-license | Silvan Mosberger | 1 | -1/+1 | |
2024-07-21 | lib: add getStatic | Someone Serge | 1 | -1/+1 | |
2024-07-21 | lib: add getOutput', a nix-lang counterpart of _overrideFirst | Someone Serge | 1 | -2/+2 | |
2024-07-11 | Merge pull request #318712 from woojiq/lib-network-ipv6-parser | Janik | 1 | -1/+4 | |
lib.network: add ipv6 parser | |||||
2024-07-03 | lib: Expose typeOf, unsafeGetAttrPos | Robert Hensing | 1 | -1/+1 | |
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). | |||||
2024-06-30 | lib.getLicenseFromSpdxIdOr: init | Yueh-Shun Li | 1 | -1/+1 | |
Add lib.meta.getLicenseFromSpdxIdOr as a variant of lib.meta.getLicenseFromSpdxId that explicitly state the default (fallback) value if there's no license matching the given SPDX ID. | |||||
2024-06-29 | lib.network: ipv6 parser from string | woojiq | 1 | -0/+3 | |
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. | |||||
2024-06-28 | lib: add fromHexString | lucasew | 1 | -1/+1 | |
Co-authored-by: lucasew <lucas59356@gmail.com> | |||||
2024-06-20 | lib: Add a TODO for builtins not available in sub-libraries | Silvan Mosberger | 1 | -3/+3 | |
2024-06-20 | lib.replaceStrings: inherit from lib.strings | Silvan Mosberger | 1 | -2/+1 | |
2024-06-20 | lib.readFile: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.genericClosure: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.pathExists: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.getAttr: inherit from lib.attrsets | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.isString: inherit from lib.strings | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.isList: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.isInt: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.isBool: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.isAttrs: inherit from lib.attrsets | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.hasAttr: inherit from lib.attrsets | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.elemAt: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.elem: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.deepSeq: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.sub: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.add: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.lessThan: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.seq: inherit from lib.trivial | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.listToAttrs: inherit from lib.attrsets | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.substring: inherit from lib.strings | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.head: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.tail: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.stringLength: inherit from lib.strings | Silvan Mosberger | 1 | -1/+2 | |
2024-06-20 | lib.length: inherit from lib.lists | Silvan Mosberger | 1 | -2/+3 | |
2024-06-20 | lib.genList: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.filter: inherit from lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.attrNames: inherit from lib.attrsets | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib: inherit concatLists via lib.lists | Silvan Mosberger | 1 | -2/+2 | |
2024-06-20 | lib.split: Export from lib.strings.split | Silvan Mosberger | 1 | -1/+1 | |
2024-06-20 | lib.match: Export from lib.strings.match | Silvan Mosberger | 1 | -1/+1 | |
2024-06-20 | lib.removeAttrs: Export from lib.attrsets.removeAttrs | Silvan Mosberger | 1 | -1/+1 | |
2024-06-20 | lib.intersectAttrs: Export from builtins | Silvan Mosberger | 1 | -1/+1 | |
2024-06-20 | lib.map: Export from lib.lists.map | Silvan Mosberger | 1 | -1/+1 | |
2024-04-22 | Merge pull request #214021 from tweag/ifilter0 | Silvan Mosberger | 1 | -1/+1 | |
lib.lists.ifilter0: init | |||||
2024-04-22 | lib.lists.ifilter0: init | Silvan Mosberger | 1 | -1/+1 | |
2024-04-21 | lib: Document status of deprecated.nix and move it | Robert Hensing | 1 | -1/+1 | |
This is all I could find after co-maintaining lib for a long time. I've had the fortune of basically not really noticing this file, because it has had very few interactions until the confusion in https://github.com/NixOS/nixpkgs/pull/304277 It seems to be a state of limbo, which would be nice to resolve (with great care), but this is not urgent, and first we should document its status. | |||||
2024-04-19 | Merge pull request #298680 from gvolpe/lib/transposeMap | Rick van Schijndel | 1 | -2/+2 | |
lib/attrsets: add mapCartesianProduct function | |||||
2024-04-15 | lib: add mdDoc back in to provide proper warning | éclairevoyant | 1 | -1/+1 | |
2024-04-15 | lib/attrsets: introduce mapCartesianProduct | Gabriel Volpe | 1 | -1/+1 | |