about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2023-06-27lib/tests/modules.sh: Test types.pathInStoreRobert Hensing2-0/+34
Add missing test cases. I think the .links case should be rejected even though it's technically a path in the store.
2023-06-27lib/types: add pathInStoreNaïm Favier1-0/+9
2023-06-26texlive: fix licensing information for doc-only-packages (#239528)apfelkuchen61-0/+5
* licenses: add opubl * texlive: fix license for npp-for-context and lshort-german This unbreaks evaluation for `texlive.combine { inherit (texlive) scheme-full; pkgFilter = (_: true) }`. The problem doesn't manifest for the default pkgFilter as `npp-for-context` is a doc-only-package (that by the way has recently been removed from texlive).
2023-06-26lib/path/tests/prop.sh: Add --show-traceRobert Hensing1-1/+1
2023-06-26lib/path/tests: Add --show-traceRobert Hensing1-2/+3
This should help troubleshoot errors. Fyi --eval is just a flag, not an option with a value.
2023-06-25lib.licenses: add Sustainable Use License (#239455)Hugh O'Brien1-0/+8
2023-06-24lib.systems.architectures: add microarchitecture levelsFabián Heredia Montiel1-11/+28
Variation on: - https://github.com/NixOS/nixpkgs/pull/208398 - https://github.com/NixOS/nixpkgs/pull/224978 Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com> Co-authored-by: Shawn8901 <shawn8901@googlemail.com> Co-authored-by: AveryanAlex <alex@averyan.ru>
2023-06-23Merge pull request #238136 from ↵Robert Hensing3-0/+58
hercules-ci/nixos-nixpkgs-dont-check-when-_module.args.pkgs-is-set `nixos/nixpkgs`: Don't check when `_module.args.pkgs` is set
2023-06-23Merge pull request #239233 from Artturin/finishremovals1Artturi1-6/+0
2023-06-23lib/modules.nix: Clean up mergeAttrDefinitionsWithPrio implRobert Hensing1-9/+2
2023-06-23lib/types: remove unused recfigsoda1-1/+1
2023-06-23lib/sources: remove unused let bindingsfigsoda1-6/+0
2023-06-23lib/modules: remove unused let bindingsfigsoda1-1/+0
2023-06-23lib/licenses: remove unused recfigsoda1-1/+1
2023-06-23lib/filesystem: remove unused let bindingsfigsoda1-4/+0
2023-06-23lib/debug: remove unused let bindingsfigsoda1-7/+0
2023-06-23lib/attrsets: remove unused let bindingsfigsoda1-1/+1
2023-06-22lib: simplify stringToCharactersfigsoda1-1/+2
2023-06-22splice.nix: finish nativeDrv,crossDrv removalArtturin1-6/+0
2023-06-22lib/system: move toLosslessStringMaybe into lib/testsAdam Joseph2-17/+18
toLosslessStringMaybe is not used by anything other than lib/tests, so it can be private to that file. I don't think this function was terribly well thought-through. If people start using it, we will become permanently dependent on the ability to test platforms for equality. It also makes the elaboration process more fragile, because it encourages code outside of nixpkgs to become sensitive to the minute details of how elaboration happens.
2023-06-21Merge pull request #237610 from tweag/lib.path.hasPrefixRobert Hensing3-2/+89
`lib.path.hasPrefix`: init
2023-06-20licenses: add mulan-psl2Astro1-0/+6
2023-06-19Merge pull request #237167 from CHN-beta/masterSandro1-0/+3
2023-06-19Merge pull request #237557 from pennae/dedocbookify-nixospennae3-43/+16
nixos/doc: dedocbookify
2023-06-19Merge pull request #238480 from amjoseph-nixpkgs/pr/lib-systems-redundantWeijia Wang1-2/+1
lib/systems: remove redundant test from selectEmulator
2023-06-19Merge pull request #238456 from apfelkuchen6/texlive-licensesPol Dellaiera1-0/+45
texlive: add licensing information
2023-06-19licenses: add GFLapfelkuchen061-0/+5
2023-06-19licenses: add GFSLapfelkuchen061-0/+5
2023-06-19licenses: add Artistic-1.0-cl8apfelkuchen061-0/+5
2023-06-19licenses: add CC-BY-SA-2.0apfelkuchen061-0/+5
2023-06-19licenses: add CC-BY-SA-1.0apfelkuchen061-0/+5
2023-06-19licenses: add CC-BY-1.0apfelkuchen061-0/+5
2023-06-19licenses: add LPPL-1.3aapfelkuchen061-0/+5
2023-06-19licenses: add LPPL-1.0apfelkuchen061-0/+5
2023-06-18lib/systems: remove redundant test from selectEmulatorAdam Joseph1-2/+1
Commit eef4bbd82f4c2 changed the conditional in selectEmulator from `isCompatible` (which examines only the CPU, rather than the entire platform) to `canExecute`. This made the first conjunct redundant. Let's drop the redundant part. https://github.com/NixOS/nixpkgs/pull/238331#discussion_r1233277119
2023-06-18licenses: add Knuth licenseapfelkuchen061-0/+5
2023-06-16lib.modules: Add mergeAttrDefinitionsWithPrioRobert Hensing3-0/+65
This will let us make assertions involving _module.args.pkgs, which is not an option but a value attribute, and therefore doesn't have its own highestPrio to inspect. The new function gives us that info.
2023-06-16lib.systems: add znver4 architectureFabián Heredia Montiel1-0/+2
2023-06-16lib: unhide _module.argspennae1-5/+0
this was a temporary fix that should hopefully no longer be necessary.
2023-06-16licenses: add Fair Source License v0.9Emily Trau1-0/+7
2023-06-15Merge pull request #237512 from hercules-ci/lib-system-equalsArtturi3-7/+90
2023-06-15lib.path.hasPrefix: initSilvan Mosberger3-2/+83
2023-06-15licenses: add BSD-3-Clause-Clearners1-0/+5
2023-06-13lib: turn *MD functions into aliasespennae2-24/+14
with docbook gone and MD the default these aren't needed any more. we can't remove them yet because there's thousands of uses, but maybe some day we can.
2023-06-13lib/options: remove literalDocBookpennae2-14/+2
no longer supported. warning when used would not be appropriate, and docbook has been on the way out for long enough that throwing an error should not be necessary either.
2023-06-13lib/tests/release.nix: Run systems tests on OfBorgRobert Hensing2-0/+5
2023-06-13lib.systems.equals: Ignore all function attributes reflectivelyRobert Hensing2-3/+3
Co-authored-by: Artturi <Artturin@artturin.com>
2023-06-13lib.systems.{equals,toLosslessStringMaybe}: initRobert Hensing2-8/+86
2023-06-11stdenv: add alderlake supportchn1-0/+3
Signed-off-by: Haonan Chen <chn@chn.moe>
2023-06-10Merge pull request #234894 from emilytrau/minimal-heirloomJohn Ericson1-0/+12
minimal-bootstrap.heirloom: init at 070715