nixpkgs-ci[bot]
c55a1a7779
Merge master into staging-next
2025-04-11 00:15:47 +00:00
Robert Hensing
e09cf9f066
lib.types.submodule: Disable check during docs generation
...
Put simply docs generation is a weird eval, and we should avoid
generating any unnecessary errors.
2025-04-11 00:32:01 +02:00
Robert Hensing
d84b0024f6
lib/modules: export class
inside specialArgs
( #395141 )
2025-04-10 20:58:41 +02:00
Michael Hoang
6de9039315
lib/modules: add class
to specialArgs
...
Co-Authored-By: Johannes Kirschbauer <hsjobeki@gmail.com>
2025-04-10 17:58:40 +02:00
nixpkgs-ci[bot]
6c98e107c7
Merge master into staging-next
2025-04-09 00:15:45 +00:00
Jörg Thalheim
abd52dd872
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.
2025-04-08 12:29:11 -04:00
Heitor Augusto
bb4be9a474
lib.strings: init splitStringBy
2025-04-07 15:51:18 -03:00
K900
b3146d4446
Merge remote-tracking branch 'origin/master' into staging-next
2025-04-07 21:21:10 +03:00
Johannes Kirschbauer
0196e5372b
lib/modules: Init lib.mkDefinition ( #390983 )
2025-04-07 14:52:48 +02:00
K900
05bc93a58a
Merge remote-tracking branch 'origin/master' into staging-next
2025-04-06 11:20:16 +03:00
Maciej Krüger
1000bcdd4d
lib.systems: Add arm-embedded-nano ( #392204 )
2025-04-06 00:10:57 +02:00
samfundev
62f3255cd8
lib/licenses: add sfl
2025-04-03 21:37:32 -04:00
Johannes Kirschbauer
33daa3f4b9
lib.modules: init test for lib.mkDefinition
2025-04-03 15:03:00 +02:00
Robert Hensing
b42b9e061b
lib.modules: init lib.mkDefinition
...
Free-floating definitions including file location.
2025-04-03 14:12:07 +02:00
Emily
61582c7043
lib/systems: use Darwin architecture names for config
and uname
...
`aarch64-apple-darwin` no longer works with LLVM 20.
2025-04-02 21:22:47 +01:00
Emily
1e6ab3434f
treewide: drop support for 32‐bit Darwin
...
It’s dead, Jim.
2025-04-02 21:20:44 +01:00
nixpkgs-ci[bot]
d05ee1c1cb
Merge staging-next into staging
2025-04-02 16:38:11 +00:00
Silvan Mosberger
e52d633a63
Merge remote-tracking branch 'upstream/staging-next' into staging
2025-04-02 18:30:54 +02:00
Mikael Voss
77b4dedbfc
lib/systems/architecures: Add generic inferiors for x86-64 AMD
2025-04-02 14:43:21 +02:00
Mikael Voss
998f1652fb
lib/system/architectures: Correct Alder Lake inferiors
2025-04-02 14:43:21 +02:00
Mikael Voss
e693be89e7
lib/systems/architectures: Define inferiors for common ARM64 CPUs
2025-04-02 14:06:27 +02:00
Mikael Voss
387a5561fb
lib/systems/architectures: Define generic ARM64 inferiors
2025-04-02 14:06:27 +02:00
Mikael Voss
931f464581
lib/types: check paths in pathWith with hasStorePathPrefix
...
This permits usage of content‐addressed derivations and has the added
benefit of checking normalised paths.
2025-04-02 13:28:52 +02:00
Mikael Voss
bf790d1a7f
lib/path: properly handle /. in hasStorePathPrefix
2025-04-02 13:26:43 +02:00
Silvan Mosberger
374e6bcc40
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](8616af08d9/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.
2025-04-01 20:10:43 +02:00
K900
a6d5666400
Merge remote-tracking branch 'origin/staging-next' into staging
2025-04-01 08:39:50 +03:00
Robert Hensing
d2c9829366
lib.modules: simplified logic in usage of zipAttrsWith and minor cleanup ( #388748 )
2025-04-01 00:48:56 +02:00
nixpkgs-ci[bot]
86e22e1e80
Merge staging-next into staging
2025-03-31 12:06:34 +00:00
Robert Hensing
bb984408d5
lib/tests/release.nix: Use nix.overrideScope for >=2.26
2025-03-31 00:47:37 +02:00
Tristan Ross
5e51e2645a
llvmPackages_{12,13,14,15,16,17,18,19,20,git}.llvm: refactor ( #389873 )
2025-03-29 14:23:57 -07:00
nixpkgs-ci[bot]
d9eb3e5d48
Merge staging-next into staging
2025-03-28 12:06:30 +00:00
Hugo Herter
fa165c6452
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
2025-03-28 11:02:49 +01:00
Tristan Ross
b26e122b14
lib.cmakeOptionType: support list
2025-03-26 21:12:07 -07:00
Tristan Ross
4d4a2f8b14
llvmPackages_20.libc-full: fix building ( #385706 )
2025-03-26 20:32:27 -07:00
Robert Hensing
90c1822309
nixVersions.nix_2_26: Fix cross and static
2025-03-26 18:33:43 -04:00
nicoo
05d528b56b
lib.packagesFromDirectoryRecursive: drop open recursion from API surface
2025-03-26 12:11:44 +01:00
nicoo
151b6e431a
lib.packagesFromDirectoryRecursive: document that symlinks are ignored
...
This was implicit in the previous “other files are ignored.”
2025-03-26 12:11:44 +01:00
nicoo
be6ce5f40d
lib.packagesFromDirectoryRecursive: Add example use of recurseIntoDirectory
2025-03-26 12:11:44 +01:00
nicoo
93d76b7344
lib.packagesFromDirectoryRecursive: reject unknown arguments
...
see [discussion](https://github.com/NixOS/nixpkgs/pull/270537#discussion_r1862458435 )
2025-03-26 12:11:44 +01:00
nicoo
6cc285d613
lib.packagesFromDirectoryRecursive: hoist processDir
out of the lambda
...
Fixes a bug preventing `recurseIntoDirectory` from changing the `directory` argument.
Moreover, `processDir` now cannot capture arguments from the `packagesFromDirectoryRecursive` call,
entirely preventing this class of bug from reoccurring should new parameters be added etc.
2025-03-26 12:11:44 +01:00
nicoo
32235deeb8
lib.packagesFromDirectoryRecursive: default to creating new scopes when newScope
is provided
...
Co-authored-by: Rebecca Turner <rbt@sent.as>
2025-03-26 12:11:44 +01:00
nicoo
41f219d1d9
lib.packagesFromDirectoryRecursive: add tests for nested scopes
2025-03-26 12:11:43 +01:00
nicoo
6b7576b0cf
lib.packagesFromDirectoryRecursive: use explicit recursion, support nested scopes
2025-03-26 12:11:43 +01:00
nicoo
fdd2c6f80f
lib/tests: move packages-from-directory/*
into a subdir
...
in preparation for adding more tests for `lib.packagesFromDirectoryRecursive`
2025-03-24 18:35:26 +01:00
nicoo
325b3755f5
lib.filesystem: remove dead let
-bindings
...
Found by `deadnix` 🖤
2025-03-24 18:35:25 +01:00
Tristan Ross
05219927d0
lib.systems: mark LLVM libc as static
2025-03-24 06:55:06 -07:00
Ross Smyth
57ec4f3128
lib.systems: Add arm-embedded-nano
...
Newlib-nano variant of the arm-embedded stdenv.
2025-03-20 16:15:09 -04:00
Johannes Kirschbauer
484a0477d8
lib/types: types.either deprecate functor.wrapped in favor of functor.payload.elemType
2025-03-20 14:11:34 +00:00
Silvan Mosberger
987a096334
lib/types: types deprecate functor.wrapped in favor of functor.payload.elemType for trivial cases ( #375084 )
2025-03-20 14:28:57 +01:00
Felix Bühler
30358ab7a7
formats.lua: init; types.luaInline: init ( #390120 )
2025-03-19 23:18:05 +01:00