about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2024-05-02licenses: add ICU licensematthewcroughan1-0/+5
2024-05-01Merge pull request #308032 from obsidiansystems/freebsd-no-suffix-versionJohn Ericson4-10/+6
treewide: freebsd13 -> freebsd
2024-04-30treewide: freebsd13 -> freebsdJohn Ericson4-10/+6
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2024-04-28nixVersions.unstable: build from master, re-init at 2.22.0.pre20240321_6fd2f42cMaximilian Bosch1-1/+1
The idea behind that is to enable users and developers of downstream tools such as home-manager to test Nix master for several reasons: * Nix is currently trying to have a `master` branch that's always releasable[1]. We're still on Nix 2.18 in nixpkgs due to too many notable regressions. Enabling people to test latest master may help on that end. * This uses the most bleeding-edge Nix, but our packaging, so we can identify issues with our packaging early. * From what I've seen, most people are using the packages from nixpkgs anyways instead of the upstream flake, this is far more convenient anyways. My plan is to update this once a week. Right now we rely on the `installCheckPhase` here, but as soon as we have proper regression testing[2], we may want to add `nixUnstable` there as well (however with failures being allowed probably). [1] https://discourse.nixos.org/t/nix-release-schedule-and-roadmap/14204 [2] https://github.com/NixOS/nixpkgs/pull/304332
2024-04-28lib/licenses: add unicode-30Dee Anzorge1-0/+5
2024-04-24lib/systems: add microblaze-embeddedJared Baur1-0/+5
Adds a new target for `pkgsCross` that can be used for building freestanding code for microblaze targets (e.g. Xilinx PMU firmware).
2024-04-22Merge pull request #214021 from tweag/ifilter0Silvan Mosberger3-2/+77
lib.lists.ifilter0: init
2024-04-22lib.lists.ifilter0: initSilvan Mosberger3-2/+77
2024-04-21lib: Document status of deprecated.nix and move itRobert Hensing3-1/+12
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-19Merge master into staging-nextgithub-actions[bot]4-25/+99
2024-04-19Merge pull request #298680 from gvolpe/lib/transposeMapRick van Schijndel4-25/+99
lib/attrsets: add mapCartesianProduct function
2024-04-16Merge master into staging-nextgithub-actions[bot]2-2/+2
2024-04-15lib: clarify warning about mdDocéclairevoyant1-1/+1
2024-04-15lib: add mdDoc back in to provide proper warningéclairevoyant1-1/+1
2024-04-15lib/tests: apply lintsGabriel Volpe1-9/+4
2024-04-15tree-wide: use mapCartesianProductGabriel Volpe1-3/+19
2024-04-15lib/attrsets: introduce mapCartesianProductGabriel Volpe3-1/+60
2024-04-15tree-wide: use cartesianProductGabriel Volpe1-6/+6
2024-04-15lib/attrsets: rename cartesianProductOfSets to cartesianProductGabriel Volpe2-6/+10
2024-04-13Merge branch 'master' into staging-nextWeijia Wang3-7/+9
2024-04-13lib.mdDoc: remove and replace with warningstuebinm1-2/+4
2024-04-13lib: remove all uses of lib.mdDocstuebinm2-5/+5
this change is otherwise a no-op, as lib.mdDoc is already defined to be the identity function.
2024-04-12Merge branch 'staging' into staging-nextVladimír Čunát1-1/+1
Conflicts (tried to quickly resolve somehow, checked eval): pkgs/development/python-modules/apsw/default.nix pkgs/development/python-modules/mido/default.nix pkgs/development/python-modules/pytest-bdd/default.nix pkgs/development/python-modules/sparse/default.nix
2024-04-09Merge pull request #284551 from hercules-ci/types-attrTagSilvan Mosberger7-3/+306
Add `types.attrTag`
2024-04-09Merge branch 'staging-next' into stagingWeijia Wang2-4/+16
2024-04-08licenses: rename `apsl{10,20}` -> `apple-psl{10,20}`iliana etaoin1-2/+14
Part 1 of #301908. This renames the two versions of the Apple Public Source License seen in nixpkgs; `apsl20` was often confused as being for the widely-used Apache License 2.0.
2024-04-06lib.hasAttrByPath: fix typo (#302042)Tharun Thennarasu1-2/+2
2024-04-05Merge remote-tracking branch 'upstream/staging-next' into stagingannalee3-1/+35
Conflicts: pkgs/development/python-modules/pynetdicom/default.nix
2024-04-04Merge pull request #301556 from edef1c/lib-xorSilvan Mosberger3-1/+35
lib: add xor
2024-04-04lib: add xoredef3-1/+35
This gets clumsily reimplemented in various places, to no useful end.
2024-04-04Merge staging-next into staginggithub-actions[bot]6-37/+53
2024-04-04doc: migrate trivial files to doc-comment format (#299986)Johannes Kirschbauer6-37/+53
* doc: migrate trivial files to doc-comment format * fix: revert some comments * Apply suggestions from code review Thanks @danielSidhion Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> * Update lib/types.nix --------- Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-04-04types.attrTag: Remove unnecessary definitions override Robert Hensing1-1/+0
Committing because tests pass. Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-04-04lib.types.attrTag: Fix declarationPositions after mergeRobert Hensing2-4/+18
2024-04-04lib/tests/modules/types-attrTag.nix: Test other option doc attrsRobert Hensing1-0/+9
2024-04-04lib/tests/modules/types-attrTag.nix: Clean up unneeded commentRobert Hensing1-1/+0
2024-04-04types.attrTag: Remove substSubmodulesRobert Hensing1-9/+0
I haven't managed to trigger the error, and it turns out that this method is optional. Specifically, getSubmodules is unimplemented (and unimplementable), the tests pass, and we seem to have good location info.
2024-04-04types.attrTagWith: removeRobert Hensing2-11/+19
Keep it simple for now.
2024-04-04lib.types.attrTag: Custom error when passing bare typeRobert Hensing3-1/+23
2024-04-04lib/tests/modules/types-attrTag: Test against unexpected attrsRobert Hensing1-6/+6
Thank you lheckemann for pointing this out!
2024-04-04lib.types.attrTag: Remove tags from descriptionRobert Hensing2-7/+8
You can find them in the sub-options now.
2024-04-04lib.modules.evalOptionValue: Undeprecate for lib.typesRobert Hensing2-2/+3
lib.types.attrTag needs it.
2024-04-04lib.types.attrTag: Provide declarations, definitionsRobert Hensing2-2/+20
2024-04-04lib/types.nix: Fix getSubOptions docRobert Hensing1-1/+1
This comment was added in 73f32d03758a5, when it was already supposed to be an attrset.
2024-04-04lib.types.attrTag: Support type mergingRobert Hensing2-1/+32
2024-04-04lib.types.attrTag: Take options instead of typesRobert Hensing2-21/+55
2024-04-04lib.types.attrTag: Support module docsRobert Hensing3-1/+65
2024-04-02lib.fileset: fix typo: compatibity to compatibilityPhilip Taron1-1/+1
2024-04-02lib/strings: Add makeIncludePath (#296237)Florian Richer3-1/+43
* Update strings.nix * Fix typo in docs * Update lib/strings.nix Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com> * Update lib/strings.nix Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com> * Add unit test with strings * Move test to strings * Add unit test with package structure * testMakeIncludePathWithPkgs: use real pkgs * Revert "testMakeIncludePathWithPkgs: use real pkgs" This reverts commit fb1850c069cfb324f3a43323da740a27a11793f3. * Update lib/tests/misc.nix Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com> * Update lib/tests/misc.nix Co-authored-by: Silvan Mosberger <github@infinisil.com> --------- Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com> Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-03-25Merge pull request #297266 from ByteSudoer/init-vidmergerSandro1-0/+6
vidmerger: init at 0.3.2