summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2023-06-19Merge pull request #237167 from CHN-beta/masterSandro
2023-06-19Merge pull request #237557 from pennae/dedocbookify-nixospennae
nixos/doc: dedocbookify
2023-06-19Merge pull request #238480 from amjoseph-nixpkgs/pr/lib-systems-redundantWeijia Wang
lib/systems: remove redundant test from selectEmulator
2023-06-19Merge pull request #238456 from apfelkuchen6/texlive-licensesPol Dellaiera
texlive: add licensing information
2023-06-19licenses: add GFLapfelkuchen06
2023-06-19licenses: add GFSLapfelkuchen06
2023-06-19licenses: add Artistic-1.0-cl8apfelkuchen06
2023-06-19licenses: add CC-BY-SA-2.0apfelkuchen06
2023-06-19licenses: add CC-BY-SA-1.0apfelkuchen06
2023-06-19licenses: add CC-BY-1.0apfelkuchen06
2023-06-19licenses: add LPPL-1.3aapfelkuchen06
2023-06-19licenses: add LPPL-1.0apfelkuchen06
2023-06-18lib/systems: remove redundant test from selectEmulatorAdam Joseph
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 licenseapfelkuchen06
2023-06-16lib.systems: add znver4 architectureFabián Heredia Montiel
2023-06-16lib: unhide _module.argspennae
this was a temporary fix that should hopefully no longer be necessary.
2023-06-15Merge pull request #237512 from hercules-ci/lib-system-equalsArtturi
2023-06-15licenses: add BSD-3-Clause-Clearners
2023-06-13lib: turn *MD functions into aliasespennae
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 literalDocBookpennae
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 Hensing
2023-06-13lib.systems.equals: Ignore all function attributes reflectivelyRobert Hensing
Co-authored-by: Artturi <Artturin@artturin.com>
2023-06-13lib.systems.{equals,toLosslessStringMaybe}: initRobert Hensing
2023-06-11stdenv: add alderlake supportchn
Signed-off-by: Haonan Chen <chn@chn.moe>
2023-06-10Merge pull request #234894 from emilytrau/minimal-heirloomJohn Ericson
minimal-bootstrap.heirloom: init at 070715
2023-06-06Merge pull request #235267 from tweag/lazier-findFirstRobert Hensing
`lib.findFirst`: Add tests and make lazier
2023-06-06lib.list.findFirst: Make lazierSilvan Mosberger
There's no need to evaluate list elements after a matching element
2023-06-06lib/tests: Add findFirst testsSilvan Mosberger
2023-06-05licenses: add Caldera and Info-ZipEmily Trau
2023-06-02lib.derivations: fix comment typoYueh-Shun Li
2023-06-01Merge pull request #234070 from tweag/pathType-testsRobert Hensing
Init `nixVersions.minimum` and fix `lib` tests for all Nix versions
2023-06-01lib/tests: Also run with nixVersions.minimum and nixVersions.unstableSilvan Mosberger
The previous commits ensure that the tests also succeed with those versions
2023-06-01lib/tests: Fix when run with Nix 2.3Silvan Mosberger
2023-06-01lib/tests/filesystem.sh: Check success and failure separatelySilvan Mosberger
2023-06-01lib.systems.doubles: add big-endian MIPS linux doublesAlyssa Ross
We already have examples for these, but since we didn't actually recognise the doubles, it wasn't possible to build any packages for them without setting allowUnsupportedSystem.
2023-06-01lib.systems: remove mipsisa(32|64)r6 triplesAlyssa Ross
These arc the same as the normal triples apart for a difference in -march, so there's no need for them to be separate triples.
2023-05-31lib.concatMapAttrs: Simplify stack traceRobert Hensing
2023-05-25lib.filesystem.pathType: Fix tests for Nix >= 2.14Silvan Mosberger
2023-05-23Merge pull request #224834 from tweag/pathType-and-coRobert Hensing
Improvements to pathType, pathIsDirectory and pathIsRegularFile
2023-05-2223.11 is TapirRaito Bezarius
2023-05-22Merge pull request #233050 from NixOS/bsl-is-redistributableRyan Lahfa
lib/licenses: Business Source License 1.1 is redistributable
2023-05-22lib/filesystem.nix: Update top commentSilvan Mosberger
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2023-05-22lib.filesystem.pathType: Use new builtins.readFileType if availableSilvan Mosberger
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2023-05-22lib.filesystem.pathType and co.: Improve documentationSilvan Mosberger
2023-05-22lib.filesystem.pathType: Improve error for non-existent pathsSilvan Mosberger
Previously it would fail with error: attribute 'nonexistent' missing at nixpkgs/lib/filesystem.nix:29:10: 28| if dirOf path == path then "directory" 29| else (readDir (dirOf path)).${baseNameOf path}; | ^ 30|
2023-05-22lib.filesystem.pathType: Fix for filesystem root argumentSilvan Mosberger
Previously this function couldn't handle / being passed, it would throw an error: error: attribute '' missing at nixpkgs/lib/filesystem.nix:24:20: 23| */ 24| pathType = path: (readDir (dirOf path)).${baseNameOf path}; | ^ 25| Consequently this also fixes the lib.filesystem.{pathIsDirectory,pathIsRegularFile} functions.
2023-05-22lib.filesystem: Minor refactorSilvan Mosberger
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2023-05-22lib.filesystem.pathType and co.: Add testsSilvan Mosberger
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2023-05-22Merge pull request #232808 from ncfavier/mkPackageOption-nullableRobert Hensing
lib/options: nullable mkPackageOption
2023-05-22lens: Change lens' listed license from MIT to their own proprietary license.Martin Wurm
Although Lens is based on a free core component ("OpenLens"), the tarballs provided by Mirantis include a proprietary version of Lens that requires a subscription. As the proprietary option offers additional features, it would not be wise to simply rewrite the derivation and base it on the FOSS source code. Instead, implementing a new derivation for OpenLens is likely the better approach.