summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2024-05-23Merge pull request #312393 from hsjobeki/doc/lib-fixedpointsDaniel Sidhion
doc: migrate lib.fixedPoints to doc-comment format
2024-05-22Merge pull request #311902 from wamirez/nix-env-rmWeijia Wang
doc: clarify consequences of `lib.meta.setName`
2024-05-2224.05 is VicuñaWeijia Wang
2024-05-20Merge pull request #312215 from hsjobeki/doc/lib-debugDaniel Sidhion
doc: migrate lib.debug to doc-comment format
2024-05-20doc: migrate filesets to doc-comment format (#303811)Johannes Kirschbauer
* doc: migrate filesets to doc-comment format * fix definition list indentation
2024-05-17doc: migrate lib.fixedPoints to doc-comment formatJohannes Kirschbauer
2024-05-16doc: migrate lib.debug to doc-comment formatJohannes Kirschbauer
2024-05-15doc: clarify consequences of `lib.meta.setName`wamirez
And remove unnecessary mention of `nix-env`
2024-05-14Merge pull request #306928 from ramboman/fix-fetchers-proxy-varsPol Dellaiera
lib.fetchers: Add uppercase proxy environment variables
2024-05-11freebsd: Cleanup, get ready to support version 14Artemis Tosini
* Extend libc Include non-libc core libraries in the libc package. Many of these mirror libraries present in glibc on linux, such as libgcc, libraries used for iconv, and libraries used for reading kernel info (libkvm, libprocstat, libmemstat). Without this many packages outside the freebsd tree would need to be modified to include standard dependencies which would already be on the system for other packages. * Mark FreeBSD as using LLVM * Update default LLVM version FreeBSD * Use patch monolith The patchesRoot system combined with the fact that each derivation will Request specific names of patches makes it very annoying to use other FreeBSD source trees with nixpkgs. This new system allows providing one Or more entire trees of patches whose contents will be dynamically Parsed and only the relevant patches will be applied for any one Derivation. With this commit, the following knobs are available for specifying the FreeBSD source: - overriding `freebsd.versionInfo`, for picking another official supported FreeBSD release. - overriding `freebsd.source` for specifying a specific unpatched FreeBSD source tree. - overriding `freebsd.patches`, for specifying the patches to apply. Co-Authored-by: Audrey Dutcher <audrey@rhelmot.io> Co-Authored-by: John Ericson <John.Ericson@Obsidian.Systems>
2024-05-02lib/gvariant: Use more specific instructions for int and attrsetJan Tojnar
2024-05-02lib/gvariant: Fix error message for unsupported primitivesJan Tojnar
Without this, passing an integer to a setting will fail with a confusing error: error: cannot coerce an integer to a string
2024-05-02licenses: add ICU licensematthewcroughan
2024-05-01Merge pull request #308032 from obsidiansystems/freebsd-no-suffix-versionJohn Ericson
treewide: freebsd13 -> freebsd
2024-04-30treewide: freebsd13 -> freebsdJohn Ericson
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2024-04-28nixVersions.unstable: build from master, re-init at 2.22.0.pre20240321_6fd2f42cMaximilian Bosch
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 Anzorge
2024-04-26lib.fetchers: Add uppercase proxy environment variablesramboman
The [Nix installer](https://github.com/NixOS/nix/blob/84e0c464f11b34fa7d5ca26dcf98a91c4d596d59/scripts/install-systemd-multi-user.sh#L38) and the [documentation](https://github.com/NixOS/nix/blob/84e0c464f11b34fa7d5ca26dcf98a91c4d596d59/doc/manual/src/installation/env-variables.md#L54-L56) state that they support uppercase proxy environment variables. [lib/fetchers.nix](https://github.com/NixOS/nixpkgs/blob/165090ed665fd56e1cabc4e2ac3b3b5524596a6a/lib/fetchers.nix#L10) only supports lowercase proxy environment variables. Fix: [nix#10491](https://github.com/NixOS/nix/issues/10491)
2024-04-24lib/systems: add microblaze-embeddedJared Baur
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 Mosberger
lib.lists.ifilter0: init
2024-04-22lib.lists.ifilter0: initSilvan Mosberger
2024-04-21lib: Document status of deprecated.nix and move itRobert Hensing
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]
2024-04-19Merge pull request #298680 from gvolpe/lib/transposeMapRick van Schijndel
lib/attrsets: add mapCartesianProduct function
2024-04-16Merge master into staging-nextgithub-actions[bot]
2024-04-15lib: clarify warning about mdDocéclairevoyant
2024-04-15lib: add mdDoc back in to provide proper warningéclairevoyant
2024-04-15lib/tests: apply lintsGabriel Volpe
2024-04-15tree-wide: use mapCartesianProductGabriel Volpe
2024-04-15lib/attrsets: introduce mapCartesianProductGabriel Volpe
2024-04-15tree-wide: use cartesianProductGabriel Volpe
2024-04-15lib/attrsets: rename cartesianProductOfSets to cartesianProductGabriel Volpe
2024-04-13Merge branch 'master' into staging-nextWeijia Wang
2024-04-13lib.mdDoc: remove and replace with warningstuebinm
2024-04-13lib: remove all uses of lib.mdDocstuebinm
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át
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 Mosberger
Add `types.attrTag`
2024-04-09Merge branch 'staging-next' into stagingWeijia Wang
2024-04-08licenses: rename `apsl{10,20}` -> `apple-psl{10,20}`iliana etaoin
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 Thennarasu
2024-04-05Merge remote-tracking branch 'upstream/staging-next' into stagingannalee
Conflicts: pkgs/development/python-modules/pynetdicom/default.nix
2024-04-04Merge pull request #301556 from edef1c/lib-xorSilvan Mosberger
lib: add xor
2024-04-04lib: add xoredef
This gets clumsily reimplemented in various places, to no useful end.
2024-04-04Merge staging-next into staginggithub-actions[bot]
2024-04-04doc: migrate trivial files to doc-comment format (#299986)Johannes Kirschbauer
* 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 Hensing
Committing because tests pass. Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-04-04lib.types.attrTag: Fix declarationPositions after mergeRobert Hensing
2024-04-04lib/tests/modules/types-attrTag.nix: Test other option doc attrsRobert Hensing
2024-04-04lib/tests/modules/types-attrTag.nix: Clean up unneeded commentRobert Hensing
2024-04-04types.attrTag: Remove substSubmodulesRobert Hensing
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.