about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
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-09Merge pull request #284551 from hercules-ci/types-attrTagSilvan Mosberger7-3/+306
Add `types.attrTag`
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-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-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/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
2024-03-25Merge pull request #295374 from philiptaron/issue-208242/lib.systemsSilvan Mosberger3-51/+140
lib: use explicit name imports in `lib/systems`
2024-03-24Merge pull request #297993 from hsjobeki/doc/customisationDaniel Sidhion1-88/+229
doc: migrate lib.customisation to use doc-comments
2024-03-23Merge pull request #297990 from hsjobeki/doc/cliDaniel Sidhion1-37/+58
doc: migrate lib.cli to use doc-comments
2024-03-23Merge pull request #295196 from tpwrules/qemu-less-libsArtturi1-0/+4
lib/systems: remove more features from qemu-user
2024-03-22doc: migrate lib.customisation to use doc-commentsJohannes Kirschbauer1-88/+229
2024-03-22doc: migrate lib.cli to use doc-commentsJohannes Kirschbauer1-37/+58
2024-03-21treewide: remove licenses.agpl3Jussi Kuokkanen1-5/+0
2024-03-21Update licenses.nixSoussi Mohamed Nour1-1292/+1303
2024-03-21update license: added the common clause licenseByteSudoer1-0/+1
2024-03-21lib.licenses: added The commons clause licenseByteSudoer1-1282/+1291
2024-03-20lib/license: add hpndUcjopejoe11-0/+5
2024-03-20lib/license: add giftwarejopejoe11-0/+5
2024-03-20lib/license: add NIST-Softwarejopejoe11-0/+5
2024-03-19doc: migrate lib.trivial to use doc-comments (#297270)Johannes Kirschbauer1-214/+727
* doc: migrate lib.trivial to use doc-comments * Apply suggestions from code review --------- Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
2024-03-19Merge pull request #296186 from hsjobeki/doc/attrsetsDaniel Sidhion1-537/+1329
doc: migrate lib.attrsets to use doc-comments
2024-03-19Apply suggestions from code reviewDaniel Sidhion1-0/+56
2024-03-19Avoid top-level `with ...;` in lib/systems/parse.nixPhilip Taron1-16/+43
2024-03-19Avoid top-level `with ...;` in lib/systems/inspect.nixPhilip Taron1-13/+25
2024-03-19lib/systems: inherit from lib.systems.inspect.predicates in ↵Philip Taron1-1/+8
lib/systems/parse.nix
2024-03-19lib/systems: inherit from lib.systems.parse in lib/systems/inspect.nixPhilip Taron1-3/+12
2024-03-19lib/systems: use lib.systems.parse and lib.systems.inspect.predicates ↵Philip Taron2-2/+2
instead of re-importing
2024-03-19lib.systems: use explicit attrset instead of `rec`Philip Taron1-20/+54
This allows refactoring in the file without accidentally modifying the public interface of the file. Also, pull in symbols consistently from `lib` instead of `builtins`.
2024-03-19doc: manual fixup after migrationJohannes Kirschbauer1-71/+12
2024-03-18Merge pull request #293901 from philiptaron/refactor-lib/generators.nixSilvan Mosberger1-76/+133
lib: use explicit name imports in `lib/generators.nix`
2024-03-18Merge pull request #295158 from philiptaron/remove-top-level-with-in-lib-part5Silvan Mosberger1-1/+88
Avoid top-level `with` in `lib/tests/misc.nix`