Commit Graph

5397 Commits

Author SHA1 Message Date
Yueh-Shun Li
8d2483b5cb lib.isFunction, lib.functionArgs: fix correctness when taking nested functors (#574597) 2026-10-25 14:54:19 +00:00
Philip Taron
fd3725ff65 lib/systems: Adjust stdenv.*Platform.rust.rustcTargetSpec for ELFv2 glibc ppc64 (#493084) 2026-10-22 17:15:05 +00:00
Ryan Lahfa
be40b5a848 lib/tests/strings.sh: accept Nix and Lix error wording (#574183) 2026-10-22 01:07:07 +00:00
Philip Taron
ba38428add lib.customisation: performance tweaks for lib.makeOverridable (#574245) 2026-10-21 20:37:07 +00:00
Diogo Correia
9f608b0e00 doc/treewide: use lib.getExe or lib.getExe' when possible
Similar to #318290 but for documentation.

All instances of the old pattern were found using `rg '\}\/bin\/' -tmd`.
Some instances were deliberately left as-is, either because it does not
make sense to convert them, or because they were in release notes.
2026-10-16 12:08:40 +01:00
Yueh-Shun Li
653dd12f1c lib.functionArgs: fix correctness for nested functors
Restore the correct behaviour prior to commit bb71feaec1
("lib.functionArgs: save a function call on every lookup")
while preserving its performance gain with best efforts.
2026-10-16 07:38:34 +08:00
Yueh-Shun Li
85effadebf lib.isFunction: fix correctness when taking nested functors
Restore the correct behaviour prior to commit 77334757d7
("lib.isFunction: save an attribute lookup")
while preserving its performance gain.
2026-10-16 07:38:33 +08:00
Eman Resu
18c3fd1513 lib/customisation/makeOverridable: inline key mirrorArgs call
Prevents a merge.
2026-10-14 23:47:21 -04:00
Eman Resu
ba55a8d8a2 lib/customisation/makeOverridable: reuse the function implicitly 2026-10-14 23:47:20 -04:00
Eman Resu
564103aa4a lib/customisation/makeOverridable: fix indentation 2026-10-14 23:47:15 -04:00
Eman Resu
e16cf3013b lib/customisation/makeOverridable: inline mirrorFunctionArgs 2026-10-14 23:47:09 -04:00
Eman Resu
9b89fcee8a lib/customisation/makeOverridable: inline setFunctionArgs
Saves a merge and two function calls.
2026-10-14 23:47:07 -04:00
Jo
af457d2d81 chickenPackages_6: handle new license (#570908) 2026-10-15 00:44:43 +00:00
Jo
9bdfc7ba81 lib.liceneses: sync with spdx 3.29.0 (#571803) 2026-10-15 00:44:01 +00:00
Raito Bezarius
48cb369917 lib/tests/strings.sh: don't pin the exact error wording
The test asserted the exact stderr of `nix-instantiate` when coercing a
missing path. That wording is implementation-defined and subject to
change: it differs between CppNix and Lix, and it can change between CppNix
releases too.

Only check that evaluation fails and that the error names the missing
path.
2026-10-15 02:36:20 +02:00
Tom
f96b57c828 sl: make use of lib.licenses.sl (#540727) 2026-10-14 22:47:47 +00:00
John Ericson
a870c0a31a netbsd: Upgrade to 11, and switch to GCC NG (#573715) 2026-10-13 20:18:14 +00:00
John Ericson
d67ee71d40 netbsd: switch to the split GCC package set
Make `useGccNG` the default for every NetBSD platform, as Cygwin's already
is, rather than opting in one example system. NetBSD 11.0 is only supported
with the split set, so this comes straight after the version bump: the
monolithic `gcc` is not kept working for it.

NetBSD is low tier and has to use GCC rather than LLVM, so it is a good
place to dogfood the split set.

With the fixes that follow, GCC 16 builds `hello`, `zlib`, `bash`,
`perl`, `python3` and the NetBSD libc for it.

`x86_64-netbsd-llvm` is unaffected, since `useLLVM` takes precedence.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-10-13 15:28:50 -04:00
Gaetan Lepage
efadb278fe lib.licenses: add nvidiaCuptiPython 2026-10-13 14:11:45 +00:00
Johannes Kirschbauer
1e29a018aa doc/types: move lib.types to nixpkgs manual
retarged links to the nixpkgs manual
introduce invisible anchors in the nixos manual so visitors of old references see the migration message
removed meta narration such as for 'basic' types
descriptions for every type was copied verbatim
2026-10-12 11:03:09 +02:00
Johannes Kirschbauer
4ac3b33833 doc: enable types doc-comments rendering for the nixpkgs manual (#569842) 2026-10-12 08:24:48 +00:00
Johannes Kirschbauer
79564aed3e lib/types: add doc-comment header for the manual 2026-10-10 13:29:24 +02:00
Eman Resu
48218d0db7 lib/generators/toLua: cache recursive calls 2026-10-09 16:20:56 -04:00
Eman Resu
16f4e1482d lib/generators/toDhall: cache variable 2026-10-09 16:20:55 -04:00
Eman Resu
637849adfd lib/generators/toPretty: cache variables 2026-10-09 16:20:55 -04:00
Eman Resu
2cfa4e1e53 lib/generators/withRecursion: cache variables 2026-10-09 16:20:54 -04:00
Eman Resu
c1a50c36eb lib/generators/toINIWithGlobalSection: partially apply functions 2026-10-09 16:20:54 -04:00
Eman Resu
01efd5876b lib/generators/toINI: partially apply functions 2026-10-09 16:20:53 -04:00
Eman Resu
4480458fc3 lib/generators/mkKeyValueDefault: cache separator escaping 2026-10-09 16:20:53 -04:00
Eman Resu
ece2817a69 lib/generators/mkValueStringDefault: cache variables 2026-10-09 16:20:52 -04:00
Connor Baker
ad6467b100 python3Packages.cuda-bindings: use the CUDA Python license before 13.4
Releases of cuda-bindings before 13.4 are licensed under the NVIDIA
Software License for NVIDIA CUDA Python (cuda_bindings/LICENSE), which
permits redistribution subject to its distribution requirements.

Add lib.licenses.nvidiaCudaPython and accept it in
allowUnfreeCudaPredicate, so that packages depending on cuda-bindings,
such as python3Packages.transformer-engine, evaluate with the CUDA
predicate instead of requiring allowUnfree.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-10-08 12:21:52 -07:00
Connor Baker
cd93248a04 python3Packages.nvidia-cutlass-dsl: use the CUTLASS DSLs license
The nvidia-cutlass-dsl and nvidia-cutlass-dsl-libs-base wheels ship the
NVIDIA Software License Agreement for the NVIDIA CUTLASS DSLs (identical
to EULA.txt in NVIDIA/cutlass), not a generic redistributable license.
It permits redistributing only Python source files incorporated into an
application (section 1.1d) and otherwise forbids distribution (section
2.2), so the binary wheels are not redistributable.

Add lib.licenses.nvidiaCutlassDsl and accept it in
allowUnfreeCudaPredicate, so that packages depending on the CUTLASS DSL,
such as python3Packages.transformer-engine, evaluate with the CUDA
predicate instead of requiring allowUnfree.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-10-08 12:21:52 -07:00
jopejoe1
5d075dc436 lib.liceneses: sync with spdx 3.29.0
add spdxIds of licenses that where newly added to spdx
2026-10-08 19:23:26 +02:00
jopejoe1
8ff3723114 lib.licenses: move cuda licenses into it 2026-10-07 17:39:23 +02:00
jopejoe1
0dc9dcd432 lib.licenses: add owl094 2026-10-06 16:27:42 +02:00
jopejoe1
4a4f0e6e5a lib.licenses: add stalwart 2026-10-06 16:08:00 +02:00
whispers
fa0582f704 lib.licenses: drop deprecated apsl{10,20} (#568330) 2026-10-06 03:21:14 +00:00
Matt Sturgeon
97046051a1 lib.customisation: fix typo in docs (#568696) 2026-10-02 00:25:31 +00:00
Ilan Joselevich
8405d4fce5 lib.meta.getDarwinApp{,'}: init (#539500) 2026-10-01 19:23:08 +00:00
David Wronek
a7b62128a1 lib.customisation: fix typo in docs
Signed-off-by: David Wronek <david.wronek@mainlining.org>
2026-09-30 17:04:17 +02:00
Ben Siraphob
07f0e5db55 treewide: replace reimplemented helpers with existing lib functions (#564688) 2026-09-30 12:16:02 +00:00
Eman Resu
3647d89269 lib.fixed-points.toExtension: inherit binding 2026-09-29 22:32:34 -04:00
Eman Resu
e64ec748f1 lib.fixed-points.composeExtensions: inline let variable
Only used once.
2026-09-29 22:30:47 -04:00
Eman Resu
7bd2aa7e08 lib.fixed-points.composeManyExtensions: beta reduce fold 2026-09-29 22:30:43 -04:00
Grayson Tinker
10d8e3d8cb lib.licenses: drop deprecated apsl{10,20} 2026-09-29 11:11:20 -06:00
nixpkgs-ci[bot]
362969a3a4 Merge master into staging-next 2026-09-28 00:28:27 +00:00
Jo
531062ef77 lib.licenses: drop gfl in favor of lppl13c (#557118) 2026-09-27 19:26:05 +00:00
nixpkgs-ci[bot]
5ec9cbdac1 Merge master into staging-next 2026-09-27 12:13:16 +00:00
Léana
199ee26b83 lib.modules: document mkOverride
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2026-09-27 12:30:55 +02:00
nixpkgs-ci[bot]
f2b3ac2ee7 Merge master into staging-next 2026-09-26 18:10:21 +00:00