about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2023-02-09lib/licenses.nix: Add cc-by-nc-nd-30OPNA26081-0/+6
2023-02-09types: suggest how to resolve the conflictDomen Kožar1-2/+5
2023-02-09types: explicitly state unique options are expected to be uniqueDomen Kožar1-1/+1
2023-02-07Merge staging-next into staginggithub-actions[bot]3-8/+109
2023-02-07Merge pull request #214930 from sheepforce/nwchemmarkuskowa1-0/+7
nwchem: init at 7.0.2
2023-02-07Merge pull request #208887 from tweag/lib.path.appendSilvan Mosberger2-8/+102
lib.path.append: init
2023-02-07lib/licenses: add ecl20Phillip Seeber1-0/+7
2023-02-07Merge staging-next into staginggithub-actions[bot]3-1/+18
2023-02-07Merge pull request #206611 from h7x4/lib-lists-add-repeatSilvan Mosberger3-1/+18
lib.lists: add `replicate`
2023-02-07Merge staging-next into staginggithub-actions[bot]1-0/+10
2023-02-06Merge pull request #214856 from vamega/bencode-pyBernardo Meurer1-0/+10
2023-02-06lib.lists: add `replicate`h7x43-1/+18
`replicate` returns n copies of an element as a list. Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
2023-02-06bencode-py: init at 4.0.0Varun Madiath1-0/+10
2023-02-03Merge pull request #211685 from Artturin/splicingstuff1-splitArtturi1-1/+8
2023-01-31Merge pull request #205557 from ncfavier/concatLinesSilvan Mosberger3-1/+17
lib/strings: add `concatLines`
2023-01-31Merge pull request #213650 from urandom2/libdocSilvan Mosberger3-10/+10
lib: standardise attrset type syntax
2023-01-31Merge master into staging-nextgithub-actions[bot]2-6/+15
2023-01-30lib: standardise attrset type syntaxColin Arnott3-10/+10
There are a number of different syntaxes used for attrset type signatures in our doc strings, this change standardises upon one that uses :: for specifying attribute type, and ; terminators to be consistent with nix syntax. There are no bugs in the functions themselves, just that different syntaxes may confuse new users.
2023-01-30Merge pull request #212939 from amjoseph-nixpkgs/pr/isStaticFlorian Klink2-6/+15
meta: replace predicates with pattern over elaborated platform
2023-01-30lib.systems.inspect.patterns.isEfi: drop ARMv5Alyssa Ross1-2/+7
I'm not aware of any ARMv5 EFI implementation. gnu-efi doesn't support it, so the build of systemd for armv5tel-linux is broken if it's isEfi.
2023-01-30Merge pull request #212282 from hercules-ci/pkg-config-packagesRobert Hensing1-1/+2
defaultPkgConfigPackages: init
2023-01-30lib.hydraJob: Tolerate nullRobert Hensing1-1/+2
By allowing null, we allow code to avoid filterAttrs, improving laziness in real world use cases. Specifically, this strategy prevents infinite recursion errors, performance issues and possibly other errors that are unrelated to the user's code.
2023-01-29lib.systems.inspect.patterns.isEfi: remove "aarch64"Alyssa Ross1-1/+1
There is no "aarch64" CPU family — it counts as "arm", as can be seen from the definition of isAarch64 above. Checked that stdenv.hostPlatform.isEfi is still true on aarch64-linux.
2023-01-27maintainers: clarify what fields are requiredNaïm Favier1-0/+1
2023-01-27maintainers: disallow `noreply.github.com` emailsNaïm Favier1-0/+2
2023-01-27maintainers: make `email` optionalNaïm Favier2-3/+6
Not giving an email address is fine as long as the maintainer is reachable through other means, such as GitHub or Matrix.
2023-01-27Update lib/systems/inspect.nixAdam Joseph1-2/+2
Co-authored-by: Naïm Favier <n@monade.li>
2023-01-27Update lib/systems/inspect.nixAdam Joseph1-1/+1
Co-authored-by: Naïm Favier <n@monade.li>
2023-01-27Update lib/meta.nixAdam Joseph1-1/+1
Co-authored-by: Naïm Favier <n@monade.li>
2023-01-27Update lib/meta.nixAdam Joseph1-1/+1
Co-authored-by: Naïm Favier <n@monade.li>
2023-01-27lib/systems/inspect.nix: add platformPatterns.isStaticAdam Joseph1-0/+10
2023-01-27lib/meta.nix: allow patterns over entire platform, not just `.parsed`Adam Joseph1-1/+5
2023-01-27Revert "lib/meta.nix: platformMatch: allow predicate functions"Adam Joseph1-6/+1
This reverts commit b7d097438b9b0f782a707f3295d320d824810864.
2023-01-25Merge pull request #212189 from ↵Robert Hensing1-2/+7
amjoseph-nixpkgs/pr/lib/mapAttrsRecursive/comment attrsets: clarify that mapAttrs maps over *leaf* attrs
2023-01-25Update lib/attrsets.nixAdam Joseph1-1/+4
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-01-24Merge pull request #212408 from raboof/imapsync-fix-licensePascal Wittmann1-1/+6
imapsync: fix license
2023-01-24licenses: add NLPLArnout Engelen1-1/+6
2023-01-23Merge pull request #209769 from LoveIsGrief/simple-dlna-browserSandro1-0/+6
2023-01-22attrsets: clarify that mapAttrs maps over *leaf* attrsAdam Joseph1-2/+4
2023-01-22lib/meta.nix: platformMatch: allow predicate functionsAdam Joseph1-1/+6
2023-01-21lib/systems/parse: stop considering armv8a able to execute armv7lAtemu1-13/+2
In the past, most (if not all) armv8 CPUs could also execute armv7. However, with the advent of Apple Silicon, aarch64 CPUs without any aarch32 capabilities are now wide-spread among users.
2023-01-20lib.extendDerivation: Fix interaction between output selection and overrideAttrsRobert Hensing1-1/+8
2023-01-20Merge pull request #210976 from clhodapp/fix/extensible-setsRobert Hensing1-2/+2
lib: make extender available on self-references
2023-01-19Merge pull request #211622 from alyssais/valgrind-platformsJohn Ericson3-0/+10
valgrind: make meta.platforms more accurate
2023-01-19lib.platforms.s390x: initAlyssa Ross3-0/+3
2023-01-19lib.platforms.power: initAlyssa Ross2-0/+2
2023-01-19lib.platforms.armv7: initAlyssa Ross3-0/+5
2023-01-18lib.path.append: initSilvan Mosberger2-1/+82
This function can be used to append strings to Nix path values in a safe way.
2023-01-18lib.path: Minor improvementsSilvan Mosberger2-7/+20
- Use isValid when possible instead of subpathInvalidReason: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068714681 - Add documentation to function arguments - Use newlines for error messages: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1069737602 - Add short comments for the unit test groups: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1072913051 - Slight formatting improvement for laws: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068707955
2023-01-18lib/tests/release.nix: Make nix a parameter + strictDepsRobert Hensing1-3/+7
This makes bisecting nix a bit easier. Example reproducer, invoked from nix directory: ```bash nix-build ../nixpkgs/lib/tests/release.nix --arg nix '(builtins.getFlake "git+file://${toString ./.}").packages.x86_64-linux.default' ```