summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib.takeEnd: init (#398222)Johannes Kirschbauer2025-04-233-0/+98
|\
| * lib.takeEnd: initazahi2025-04-133-0/+98
* | lib.getAttrFromPath: fix docs (#400948)Johannes Kirschbauer2025-04-231-2/+2
|\ \
| * | lib.getAttrFromPath: fix docsSilvan Mosberger2025-04-221-2/+2
* | | lib.strings: init splitStringBy (#385643)Pol Dellaiera2025-04-233-0/+187
|\ \ \ | |/ / |/| |
| * | lib.strings: init splitStringByHeitor Augusto2025-04-073-0/+187
* | | lib/strings: Zero‐pad hex digits in escapeC (#399722)Norbert Melzer2025-04-212-3/+7
|\ \ \
| * | | lib/strings: Zero‐pad hex digits in escapeC•••lib.strings.escapeC produces single‐digit hexadecimal strings for character values ≤ 15, which results in an ambiguity. If the following character is a hex digit, it will be interpreted as being part of the escape sequence. systemd, which also relies on C‐style escape sequences, does not decode single‐digit sequences at all, even if unambiguous. Padding the hexadecimal string with "0" avoids this problem. Mikael Voss2025-04-182-3/+7
* | | | lib.options.mkPackageOption: use lib.showAttrPath (#398066)Johannes Kirschbauer2025-04-213-5/+33
|\ \ \ \
| * | | | lib.options.mkPackageOption: use lib.showAttrPath•••Make use of `lib.showAttrPath` instead of manually doing `concatStringsSep "."`. This means edge-cases such as the attr-path including names that are not valid nix identifiers will be handled better. See: - https://nix.dev/manual/nix/2.26/language/identifiers - https://nixos.org/manual/nixpkgs/unstable/#function-library-lib.attrsets.showAttrPath Matt Sturgeon2025-04-133-4/+23
| * | | | lib/tests/modules: test all `mkPackageOption` cases•••There were several test case options declared in `declare-mkPackageOption.nix` that were not actually tested in `modules.sh`. Matt Sturgeon2025-04-131-1/+10
| | |_|/ | |/| |
* | | | lib/types: check paths in pathWith with hasStorePathPrefix (#387304)Johannes Kirschbauer2025-04-214-2/+18
|\ \ \ \ | |_|/ / |/| | |
| * | | lib/types: check paths in pathWith with hasStorePathPrefix•••This permits usage of content‐addressed derivations and has the added benefit of checking normalised paths. Mikael Voss2025-04-022-1/+11
| * | | lib/path: properly handle /. in hasStorePathPrefixMikael Voss2025-04-022-1/+7
* | | | grayjay: init at 5 (#368427)Thiago Kenji Okada2025-04-181-0/+7
|\ \ \ \ | |_|/ / |/| | |
| * | | lib/licenses: add sflsamfundev2025-04-031-0/+7
* | | | Merge remote-tracking branch 'origin/master' into staging-nextK9002025-04-112-2/+65
|\ \ \ \
| * \ \ \ lib.types.submodule: Disable check during docs generation (#396907)Robert Hensing2025-04-112-2/+65
| |\ \ \ \
| | * | | | lib.types.submodule: Disable check during docs generation•••Put simply docs generation is a weird eval, and we should avoid generating any unnecessary errors. Robert Hensing2025-04-112-2/+65
* | | | | | lib.systems: force qemuArch to "aarch64" on aarch64•••qemu architecture names are fixed — we're using uname here just because it's more likely to be correct than CPU name (see e.g. POWER). This means that aarch64 is always called aarch64, even on Darwin where uname reports arm64. Fixes: 61582c704327 ("lib/systems: use Darwin architecture names for `config` and `uname`") Alyssa Ross2025-04-111-0/+2
* | | | | | Merge master into staging-nextnixpkgs-ci[bot]2025-04-117-1/+105
|\| | | | |
| * | | | | lib/modules: export `class` inside `specialArgs` (#395141)Robert Hensing2025-04-107-1/+105
| |\ \ \ \ \
| | * | | | | lib/modules: add `class` to `specialArgs`•••Co-Authored-By: Johannes Kirschbauer <hsjobeki@gmail.com> Michael Hoang2025-04-107-1/+105
| | | |_|_|/ | | |/| | |
* | | | | | Merge master into staging-nextnixpkgs-ci[bot]2025-04-091-1/+1
|\| | | | |
| * | | | | nixVersions.{nix_2_28,nix_2_26}: switch simplified meson build•••So we are adding a simplified version that builds a monolithic nix binary to get finished in time for the release. Afterwards we will switch to the modular build again. Jörg Thalheim2025-04-081-1/+1
| |/ / / /
* | | | | Merge remote-tracking branch 'origin/master' into staging-nextK9002025-04-074-4/+96
|\| | | |
| * | | | lib/modules: Init lib.mkDefinition (#390983)Johannes Kirschbauer2025-04-074-4/+96
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | lib.modules: init test for lib.mkDefinitionJohannes Kirschbauer2025-04-033-2/+79
| | * | | lib.modules: init lib.mkDefinition•••Free-floating definitions including file location. Robert Hensing2025-04-032-4/+19
| | |/ /
* | | | Merge remote-tracking branch 'origin/master' into staging-nextK9002025-04-061-0/+4
|\| | |
| * | | lib.systems: Add arm-embedded-nano (#392204)Maciej Krüger2025-04-061-0/+4
| |\ \ \ | | |/ / | |/| |
| | * | lib.systems: Add arm-embedded-nano•••Newlib-nano variant of the arm-embedded stdenv. Ross Smyth2025-03-201-0/+4
* | | | lib/systems: use Darwin architecture names for `config` and `uname`•••`aarch64-apple-darwin` no longer works with LLVM 20. Emily2025-04-023-10/+16
* | | | treewide: drop support for 32‐bit Darwin•••It’s dead, Jim. Emily2025-04-023-26/+0
* | | | Merge staging-next into stagingnixpkgs-ci[bot]2025-04-021-89/+148
|\| | |
| * | | lib/systems/architecures: Add generic inferiors for x86-64 AMDMikael Voss2025-04-021-7/+7
| * | | lib/system/architectures: Correct Alder Lake inferiorsMikael Voss2025-04-021-2/+1
| * | | lib/systems/architectures: Define inferiors for common ARM64 CPUsMikael Voss2025-04-021-121/+148
| * | | lib/systems/architectures: Define generic ARM64 inferiorsMikael Voss2025-04-021-1/+34
| | |/ | |/|
* | | Merge remote-tracking branch 'upstream/staging-next' into stagingSilvan Mosberger2025-04-0224-6538/+10439
|\| |
| * | treewide: Format all Nix files•••Format all Nix files using the officially approved formatter, making the CI check introduced in the previous commit succeed: nix-build ci -A fmt.check This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153) of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166). This commit will lead to merge conflicts for a number of PRs, up to an estimated ~1100 (~33%) among the PRs with activity in the past 2 months, but that should be lower than what it would be without the previous [partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537). Merge conflicts caused by this commit can now automatically be resolved while rebasing using the [auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase). If you run into any problems regarding any of this, please reach out to the [formatting team](https://nixos.org/community/teams/formatting/) by pinging @NixOS/nix-formatting. Silvan Mosberger2025-04-0124-6538/+10438
* | | Merge remote-tracking branch 'origin/staging-next' into stagingK9002025-04-011-7/+5
|\| |
| * | lib.modules: simplified logic in usage of zipAttrsWith and minor cleanup (#38...Robert Hensing2025-04-011-7/+5
| |\ \
| | * | lib.modules: simplified logic in zipAttrsWith and minor cleanuptoborwinner2025-03-101-7/+5
* | | | Merge staging-next into stagingnixpkgs-ci[bot]2025-03-311-15/+4
|\| | |
| * | | lib/tests/release.nix: Use nix.overrideScope for >=2.26Robert Hensing2025-03-311-15/+4
* | | | llvmPackages_{12,13,14,15,16,17,18,19,20,git}.llvm: refactor (#389873)Tristan Ross2025-03-291-2/+2
|\ \ \ \
| * | | | lib.cmakeOptionType: support listTristan Ross2025-03-261-2/+2
* | | | | Merge staging-next into stagingnixpkgs-ci[bot]2025-03-281-0/+5
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / /
| * | | lib/licenses: add aml•••Add the "Appple MIT License", also known as "Apple-Sample-Code-License". Quoting the Fedora wiki: > This is Apple's variant of MIT. They've added wording around patents, > which is why it gets it own shortname. Apple did not give this license > a name, so we've named it "Apple MIT License". > It is free and GPL compatible. References: - https://developer.apple.com/support/downloads/terms/apple-sample-code/Apple-Sample-Code-License.pdf - https://spdx.org/licenses/AML.html - https://fedoraproject.org/wiki/Licensing/Apple_MIT_License Hugo Herter2025-03-281-0/+5