summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib.oldestSupportedReleaseIsAtLeast: rename from bad name (#347258)Silvan Mosberger2024-10-096-11/+20
|\
| * treewide: lib.isInOldestRelease -> lib.oldestSupportedReleaseIsAtLeastRobert Hensing2024-10-084-10/+10
| * lib.oldestSupportedReleaseIsAtLeast: rename from bad name and deprecate after...•••It seems impossible to describe this condition more concisely without making it incomprehensible. Robert Hensing2024-10-082-1/+10
* | lib/systems/architectures: add sapphirerapids/emeraldrapids•••For reference: https://en.wikichip.org/wiki/intel/microarchitectures/sapphire_rapids https://www.phoronix.com/news/GCC-13-Initial-Emerald-Rapids https://www.phoronix.com/news/LLVM-Adds-Intel-Emerald-Rapids Jörg Thalheim2024-10-081-0/+4
|/
* lib/licenses.nix: misc fixes (#345813)h7x42024-10-061-3/+3
|\
| * lib.licenses.purdueBsd: fix typo in fullName and commentZitrone2024-10-021-1/+1
| * lib/licenses.nix: remove outdated commentZitrone2024-10-021-1/+1
| * lib.licenses.iasl: correct fullNameZitrone2024-10-021-1/+1
* | lib.modules: fix test line using empty "$@"•••Probably a missed left over from somewhere in the commit 58f385f68005a6fed7b526ee2c19fef11d87038c. As can be seen in that commit where this line was introduced, "$@" was also just emptied by the last `set` call in line 169. This line is currently valid, but breaks suddenly when somewhere earlier a `set --` instruction is used in the future. Neither in commit 58f385f68005a6fed7b526ee2c19fef11d87038c nor in PR https://github.com/NixOS/nixpkgs/pull/197547 have I found anything stating that this "defect" was intentional. Felix Stupp2024-10-051-1/+1
* | nixos/binfmt: Add option to use static emulators when available•••The fixBinary flag will be enabled if a static emulator is in use. Zhaofeng Li2024-10-012-0/+5
* | lib/systems: use qemu-user package instead of custom definitionJulius Michaelis2024-10-011-20/+1
* | lib/modules: Improve error when loading a flake as a module (#344688)Silvan Mosberger2024-10-012-8/+108
|\ \
| * | lib/modules: Improve error when loading a flake as a moduleRobert Hensing2024-09-262-8/+108
* | | lib.systems: fix rustTarget for WASI•••The corresponding Rust target name is "wasm32-wasip?", not "wasm32-unknown-wasi". oxalica2024-09-301-2/+11
* | | lib.systems.examples: Fix deprecated attr•••`For android 'sdkVer' has been renamed to 'androidSdkVersion'` While doing the above rename I forgot to consider if there were still darwin platforms in `lib.systems.examples` using `sdkVer` These still fail eval, but that happened before the renaming too. `error: Unsupported sdk: 14.3` Artturin2024-09-301-4/+4
| |/ |/|
* | Color transformation language init (#338697)Connor Baker2024-09-271-0/+5
|\ \ | |/ |/|
| * aces-container: init at 1.0.2Mica Semrick2024-09-101-0/+5
* | treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`•••In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ``` Artturin2024-09-251-1/+1
* | lib.types.anything: remove custom logic for lists (#340202)Robert Hensing2024-09-184-10/+7
|\ \
| * | lib.types.anything: remove custom logic for lists (default to 'mergeEqualOpti...•••Previously, for values of type list, the merge function would only retain the value if the number of option definitions was less than or equal to 1, and would throw an error for conflicting definitions to avoid potentially unwanted list merges. This change removes that logic, defaulting to the 'mergeEqualOption' function for values of type list. This approach maintains the same safeguard against merging different lists while allowing lists with identical values to be merged. Alexis Destrez2024-09-074-10/+7
* | | lib.fetchers: add hash-normalization helpers (#342072)nicoo2024-09-173-1/+339
|\ \ \
| * | | lib.fetchers.normalizeHash: more implementation comment and clearer variable ...nicoo2024-09-171-11/+12
| * | | lib.fetchers: add testsnicoo2024-09-172-0/+166
| * | | lib.fetchers.normalizeHash: replace `""` with `lib.fake*`nicoo2024-09-171-2/+15
| * | | lib.fetchers: factor-out definitions common to `normalizeHash` and `withNorma...nicoo2024-09-171-6/+10
| * | | lib.fetchers: replace `with`-bindings with explicit `let inherit`nicoo2024-09-171-2/+6
| * | | lib.fetchers: optimize `normalizeHash` and `withNormalizedHash` via min-scopingnicoo2024-09-171-23/+30
| * | | lib.fetchers.withNormalizedHash: handle fetchers whose hash parameter is opti...nicoo2024-09-171-6/+7
| * | | lib.fetchers: add `normalizeHash` and `withNormalizedHash`nicoo2024-09-171-1/+143
* | | | lib.fixedPoints.toExtension: improve documentation•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>Yueh-Shun Li2024-09-141-9/+8
* | | | lib.fixedPoints.toExtension: Improve type ••• This makes the type more informative and general - closer to how the function behaves, particularly in isolation. Co-authored-by: Yueh-Shun Li <shamrocklee@posteo.net>Robert Hensing2024-09-141-2/+11
* | | | lib.toExtension: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Yueh-Shun Li2024-09-143-1/+83
* | | | lib/tests/misc.nix: move testFix into new category FIXED-POINTSYueh-Shun Li2024-09-141-5/+7
|/ / /
* | | doc: lib.composeExtensions reference to overlays (#325479)Robert Hensing2024-09-131-47/+91
|\ \ \
| * | | Apply suggestions from code review•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>Johannes Kirschbauer2024-09-111-4/+4
| * | | format: lib/fixed-pointsJohannes Kirschbauer2024-08-151-24/+33
| * | | doc: refactor documentation for lib.{composeExtensions,composeManyExtensions}Johannes Kirschbauer2024-08-151-27/+62
* | | | lib/types: fix toCoerced's typeMergeHexoKnight2024-09-103-1/+13
* | | | Merge master into staging-nextgithub-actions[bot]2024-09-091-0/+7
|\ \ \ \
| * \ \ \ _1fps: init at 0.1.10 (#333281)Aleksana2024-09-091-0/+7
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | licenses: add FSL-1.1-Apache-2.0renesat2024-09-081-0/+7
* | | | | Merge remote-tracking branch 'origin/master' into staging-nextK9002024-09-041-3/+2
|\| | | |
| * | | | databricks-cli: Init at 0.227.0 (#332946)Sandro2024-09-031-3/+2
| |\ \ \ \
| | * | | | licenses: Update databricks metadata•••Link to offical Databricks License URL Kristoffer K. Føllesdal2024-08-261-3/+2
* | | | | | Merge master into staging-nextgithub-actions[bot]2024-09-031-3/+4
|\| | | | |
| * | | | | lib.strings.trimWith: Refactor scoping•••I wanted to use this instead of [my ownimplementation](https://github.com/nix-community/pyproject.nix/blob/65d4134/lib/util.nix#L18-L23) and got a small performance regression. adisbladis2024-09-031-3/+4
* | | | | | Merge master into staging-nextgithub-actions[bot]2024-09-021-0/+1
|\| | | | |
| * | | | | lib.systems: add rustTarget for riscv32•••Fixes buildPackages.rustc when cross compiling to riscv32. Alyssa Ross2024-09-021-0/+1
* | | | | | Merge master into staging-nextgithub-actions[bot]2024-09-022-5/+5
|\| | | | |
| * | | | | lib/modules: improve error message when option is being accessed that isn't d...Robert Hensing2024-09-022-5/+5
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |