about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2024-06-14Merge pull request #319624 from flokli/rust-configIlan Joselevich1-3/+3
config.rust: update references from rustc
2024-06-13config.rust: update references from rustcFlorian Klink1-3/+3
`rustc.config` is called `rust.rustcTarget` now, and `{rustc -> rust}.platform`. This is the new way (tm), and is preferred since https://github.com/NixOS/nixpkgs/pull/271707 - though the documentation still is outdated, and some expressions in nixpkgs were using the old interface. This updates both.
2024-06-13Merge pull request #318511 from sg-qwt/masterJörg Thalheim1-1/+1
24.11 rename codeName to Vicuna
2024-06-13Merge pull request #318102 from ↵Silvan Mosberger1-0/+60
TheCodedProf/private/thecodedprof/documentation-examples lib.trivial: add examples for importJSON and importTOML
2024-06-13lib.trivial.importJSON: add exampleSamuel Shuert1-0/+31
Add parity with importTOML.
2024-06-13lib.trivial.importTOML: add exampleSamuel Shuert1-0/+29
Friend came to me with misunderstanding of how this function works. After discussion we came to the conclusion having an example would have prevented this.
2024-06-09lib/tests/release.nix: fix pkgs.lib error by passing libTristan Ross1-2/+1
2024-06-0924.11 rename codeName to Vicuna無名氏1-1/+1
2024-06-06lib/tests/release.nix: make pureTristan Ross1-1/+4
2024-05-29Merge pull request #311836 from obsidiansystems/aa-openbsd-1John Ericson3-0/+7
openbsd: init at 7.5
2024-05-27Merge pull request #311696 from Pandapip1/fix-statoolkit-licensetomberek1-0/+11
licenses: Add NCBI-PD
2024-05-26openbsd: init at 7.5Ali Abrar3-0/+7
2024-05-24Merge pull request #309517 from bobrippling/fix/ebusd-argsSilvan Mosberger2-1/+31
Fix ebusd service argument passing
2024-05-23Merge pull request #312393 from hsjobeki/doc/lib-fixedpointsDaniel Sidhion1-32/+120
doc: migrate lib.fixedPoints to doc-comment format
2024-05-22Merge pull request #311902 from wamirez/nix-env-rmWeijia Wang1-2/+6
doc: clarify consequences of `lib.meta.setName`
2024-05-2224.05 is Vicuña 24.11-preWeijia Wang2-2/+2
2024-05-22cli.nix: permit separators between args -> `-a=b`, `--xyz=abc`, etcRob Pilling2-1/+31
2024-05-20Merge pull request #312215 from hsjobeki/doc/lib-debugDaniel Sidhion1-136/+354
doc: migrate lib.debug to doc-comment format
2024-05-20doc: migrate filesets to doc-comment format (#303811)Johannes Kirschbauer1-280/+471
* doc: migrate filesets to doc-comment format * fix definition list indentation
2024-05-17doc: migrate lib.fixedPoints to doc-comment formatJohannes Kirschbauer1-32/+120
2024-05-16doc: migrate lib.debug to doc-comment formatJohannes Kirschbauer1-136/+354
2024-05-15doc: clarify consequences of `lib.meta.setName`wamirez1-2/+6
And remove unnecessary mention of `nix-env`
2024-05-14licenses: Add NCBI-PDGavin John1-0/+11
2024-05-14Merge pull request #306928 from ramboman/fix-fetchers-proxy-varsPol Dellaiera1-0/+1
lib.fetchers: Add uppercase proxy environment variables
2024-05-11freebsd: Cleanup, get ready to support version 14Artemis Tosini1-0/+2
* 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 Tojnar1-0/+59
2024-05-02lib/gvariant: Fix error message for unsupported primitivesJan Tojnar1-1/+1
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 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-26lib.fetchers: Add uppercase proxy environment variablesramboman1-0/+1
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 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.