Commit Graph
966858 Commits
Author SHA1 Message Date
Philip Taron 61eaaf6184 tests.buildenv: assert that structuredAttrs is broken
buildEnv's builder.pl reads all inputs from environment variables,
which is incompatible with structuredAttrs (values go into a JSON file
instead). Document this known failure as a test.
2026-03-19 13:43:18 -07:00
Philip Taron 42a88a9634 tests.buildenv: add build tests for output verification
Add derivations that actually build a buildEnv and verify the output tree.
Exposed as passthru.buildTests so they can be built individually or all at once.

- basic-symlinking: single package produces correct symlink structure
- pathsToLink: only specified subdirectories appear in output
- extraPrefix: output is rooted under the specified prefix
- postBuild: shell commands execute after the symlink tree
- ignoreCollisions: duplicate paths succeed when ignoreCollisions=true
2026-03-19 13:17:21 -07:00
Philip Taron 83669e31a2 tests.buildenv: test derivationArgs forwarding
Verify that:
- derivationArgs attributes reach the underlying mkDerivation (tested via allowSubstitutes overriding the default false)
- The backward-compat layer for top-level nativeBuildInputs still works (these are forwarded through compatArgs)
2026-03-19 13:17:21 -07:00
Philip Taron dbf1fa96d8 tests.buildenv: test passthru merging
buildEnv merges passthru from three sources:
  `{ inherit paths; } // derivationArgs.passthru // passthru`

Verify that:
- Auto-injected paths are present in passthru
- derivationArgs.passthru attributes are preserved
- Direct passthru attributes are preserved
- Direct passthru takes precedence over derivationArgs.passthru
2026-03-19 13:17:21 -07:00
Philip Taron fc93a90563 tests.buildenv: test overrideAttrs
Verify that overrideAttrs on a buildEnv result:

- Can modify passthru attributes
- Preserves the derivation name
- Produces a different derivation when a build-affecting attribute (postBuild) is changed
2026-03-19 13:17:20 -07:00
Philip Taron effd58ab3e tests.buildenv: test finalAttrs self-reference
This is the core new capability of the PR: `buildEnv` now accepts a function `(finalAttrs: { ... })` enabling self-referencing attributes.

Verify that finalAttrs.name is accessible from within the argument function.
2026-03-19 13:17:20 -07:00
Philip Taron 150cd2ae32 tests.buildenv: test passthru.paths injection
buildEnv stashes `paths` into `passthru.paths` (rather than passing it directly as a derivation attribute) to prevent unexpected string context pollution. Verify that:
- paths are accessible via passthru.paths
- passthru.paths can be overridden with overrideAttrs
2026-03-19 13:17:20 -07:00
Philip Taron 179ca9859e doc: buildenv.section.md: fix argument name, default, and grammar
- includeClosure -> includeClosures (matching the actual argument name)
- extraPrefix default: [ ] -> "" (matching the actual default)
- Fix broken sentence about ignoreSingleFileOutputs
2026-03-19 13:17:20 -07:00
Philip Taron 7269072659 buildEnv: fix passthru merging
Merge derivationArgs.passthru into the passthru chain so that passthru attributes passed via derivationArgs are not silently dropped.
2026-03-19 13:17:19 -07:00
Yueh-Shun LiandPhilip Taron 3b82db1881 rl-2511.section.md: document buildEnv's supporting finalAttrs and <pkg>.overridAttrs 2026-03-19 13:17:19 -07:00
Yueh-Shun LiandPhilip Taron 3182567271 doc: buildenv.section.md: init 2026-03-19 13:17:19 -07:00
Yueh-Shun LiandPhilip Taron 7e851e1cf5 buildEnv: take derivationArgs 2026-03-19 13:17:19 -07:00
Yueh-Shun LiandPhilip Taron ae8cb8c65e buildEnv: reference attributes from finalAttrs 2026-03-19 13:17:19 -07:00
Yueh-Shun LiandPhilip Taron 726999375d buildEnv: construct with extendMkDerivation and stdenvNoCC.mkDerivation 2026-03-19 13:17:18 -07:00
Yueh-Shun LiandPhilip Taron c42757764c buildEnv: specify extraPathsFrom a string as expected by the builder
Specify `extraPathsFrom` as a string using `lib.optionalString` instead of a singleton list using `lib.optional` to align with the current behavior of the Perl build script.
2026-03-19 13:17:18 -07:00
Philip Taron cf7ebfa6ae tests.buildenv: test name/pname/version handling
Verify that:
- `name` argument is used directly as the derivation name
- `pname` + `version` composes into the derivation name
- Omitting all three triggers the buildEnv-specific assertion

The assertion test uses `builtins.tryEval` + `builtins.seq` to force evaluation of .drvPath and confirm it throws.
2026-03-19 13:17:18 -07:00
Philip Taron d63fab02b0 tests.buildenv: init test harness
Add an eval-time test harness for buildEnv following the pattern established by `tests.overriding`.
Uses `lib.runTests` to compare expr/expected pairs, and the buildCommand reports pass/fail.

No tests yet; subsequent commits add them individually.
2026-03-19 13:17:18 -07:00
nixpkgs-ci[bot]andGitHub fa78dd9141 Merge staging-next into staging 2026-03-19 18:19:04 +00:00
nixpkgs-ci[bot]andGitHub 33c2fd78c8 Merge master into staging-next 2026-03-19 18:18:31 +00:00
Gaétan LepageandGitHub 24900894dc mujoco: add missing libGL to propagatedBuildInputs (#500777) 2026-03-19 17:54:13 +00:00
YtandGitHub ca5ca78368 gleam: 1.15.1 -> 1.15.2 (#501358) 2026-03-19 17:49:01 +00:00
YtandGitHub 8115f6248c beam29Packages.erlang: 29.0-rc1 -> 29.0-rc2 (#501363) 2026-03-19 17:48:25 +00:00
misuzuandGitHub 655f749d1a python3Packages.nexusrpc: Enable checkPhase (#489085) 2026-03-19 17:42:56 +00:00
Yohann BonifaceandGitHub 2cccc2e5ac vscode-extensions.angular.ng-template: 21.2.2 -> 21.2.3 (#501321) 2026-03-19 17:39:25 +00:00
misuzuandGitHub 4beb1aca16 libretranslate: 1.9.0 -> 1.9.5; modernize (#501086) 2026-03-19 17:32:45 +00:00
nixpkgs-ci[bot]andGitHub 0b38635e39 windsurf: 1.9577.24 -> 1.9577.42 (#501361) 2026-03-19 17:30:12 +00:00
nixpkgs-ci[bot]andGitHub f04aee989d dprint-plugins.dprint-plugin-biome: 0.12.2 -> 0.12.4 (#501330) 2026-03-19 17:30:01 +00:00
Yohann BonifaceandGitHub 0bcf59d0ed maintainers: remove fabiangd (#501186) 2026-03-19 17:25:13 +00:00
Adam C. Stephens 22ee86d794 beam29Packages.erlang: 29.0-rc1 -> 29.0-rc2
Changelog: https://github.com/erlang/otp/releases/tag/OTP-29.0-rc2
Announcement: https://www.erlang.org/news/185
2026-03-19 13:05:56 -04:00
nixpkgs-ci[bot]andGitHub a6857e68f1 firebase-tools: 15.9.1 -> 15.11.0 (#501257) 2026-03-19 16:58:00 +00:00
nixpkgs-ci[bot]andGitHub fa8cfbb9c9 gerbolyze: 3.1.9 -> 3.2.0 (#500277) 2026-03-19 16:57:57 +00:00
Bruno Bigras fbf4684c41 gleam: 1.15.1 -> 1.15.2 2026-03-19 12:51:09 -04:00
R. Ryantm e73482af9d windsurf: 1.9577.24 -> 1.9577.42 2026-03-19 16:46:45 +00:00
Marcus RambergandGitHub dcb3759376 vivaldi: 7.8.3925.76 -> 7.9.3970.39 (#501306) 2026-03-19 16:39:23 +00:00
Francesco GazzettaandGitHub ed99b359c3 wayneko: fix build with GCC 14 (#501230) 2026-03-19 16:30:44 +00:00
nixpkgs-ci[bot]andGitHub bbda98b40e bazaar: fix running executable directly (#501033) 2026-03-19 16:29:04 +00:00
nixpkgs-ci[bot]andGitHub faaea98ba9 mozillavpn: 2.33.1 -> 2.34.1 (#500732) 2026-03-19 16:29:02 +00:00
Yohann BonifaceandGitHub d20f37c952 kdesvn: fix minimum cmake version policy (#499315) 2026-03-19 16:14:13 +00:00
Yohann BonifaceandGitHub ee8bbfa11a maintainers: update koi information (#501281) 2026-03-19 15:55:43 +00:00
Fabián Heredia MontielandGitHub 49b9107db9 coconut: add missing dependency (#501193) 2026-03-19 15:33:30 +00:00
isabelandGitHub cb5d703ffe moonlight: 2026.3.1 -> 2026.3.2 (#501007) 2026-03-19 15:31:26 +00:00
Yohann BonifaceandGitHub 95c538d60e webdump: init at 0.2 (#501026) 2026-03-19 15:25:48 +00:00
HarinnandSigmanificient a318b27cd0 kdesvn: fix minimum cmake version policy 2026-03-19 16:22:38 +01:00
Toni TauroandSigmanificient 3e6f83e924 webdump: init at 0.2
Signed-off-by: Toni Tauro <eye@eyenx.ch>
2026-03-19 16:16:33 +01:00
Bobby RongandGitHub 23ccdf26d1 pantheon.granite7: 7.8.0 -> 7.8.1 (#501039) 2026-03-19 15:13:18 +00:00
Bobby RongandGitHub 42b975c26b pantheon.elementary-code: 8.1.2 -> 8.2.0 (#501327) 2026-03-19 15:11:50 +00:00
Nikolay KorotkiyandGitHub 5ec4447a13 tilemaker: 3.0.0 → 3.1.0 (#501069) 2026-03-19 15:10:52 +00:00
nixpkgs-ci[bot]andGitHub 3acac9c1a1 awakened-poe-trade: 3.28.102 -> 3.28.103 (#501311) 2026-03-19 15:01:27 +00:00
nixpkgs-ci[bot]andGitHub 231a9e1f88 libretro-shaders-slang: 0-unstable-2026-03-01 -> 0-unstable-2026-03-16 (#500642) 2026-03-19 15:01:25 +00:00
R. Ryantm c9aa4ffe6c dprint-plugins.dprint-plugin-biome: 0.12.2 -> 0.12.4 2026-03-19 14:54:39 +00:00