Commit Graph

1214 Commits

Author SHA1 Message Date
nixpkgs-ci[bot]
cd4453b4ea Merge staging-next into staging 2026-08-17 06:12:02 +00:00
Michael Daniels
4ab6d24e9a stdenv: compose custom and cross stages without recursive imports (#543332) 2026-08-17 01:37:36 +00:00
Guillaume Maudoux
00bf78dea8 auto-patchelf: add --relativize-rpath arg (#551485) 2026-08-12 12:11:32 +00:00
Florian Klink
191fb7ce40 tests.auto-patchelf-hook-relativize-rpath: init
This adds a test for the introduced --relativize-rpath cmdline arg.
2026-08-11 16:55:44 +03:00
nixpkgs-ci[bot]
f2c8920574 Merge master into staging-next 2026-08-11 00:16:59 +00:00
7c6f434c
8cec5475cf buildOpenSCADPackage: init (#536489) 2026-08-10 23:29:30 +00:00
Eman Resu
d7df67e2ba stdenv/darwin: move the libiconv alias assertion into tests.stdenv (#550915) 2026-08-10 19:57:49 +00:00
nixpkgs-ci[bot]
8fc3d12a65 Merge master into staging-next 2026-08-10 12:16:26 +00:00
Aliaksandr
f8b9b7a087 stdenv/darwin: move the libiconv alias assertion into tests.stdenv
The final stage asserted

    assert prevStage.libiconv == prevStage.darwin.libiconv;

On Darwin `libiconv` is `darwin.libiconv`, so this compares a value with
itself. Nix does not notice: `eqValues` short-circuits only on pointer
identity of the two value slots, and these are two slots that resolve to
one attribute set. It therefore falls through to the derivation case,
which compares `outPath`.

`lib.extendDerivation` guards `outPath` behind the derivation's validity,
which reads `config.allowUnfree`, so the assertion demanded a `config`
option while the package set was still being assembled. When `config` is a
function it is passed `pkgs`, and the loop closes:

    (import <nixpkgs> {
      system = "aarch64-darwin";
      config = { pkgs, lib, ... }: { allowUnfree = lib.isAttrs pkgs; };
    }).config.allowUnfree

failed with an infinite recursion on Darwin while evaluating on Linux,
whose stdenv never forces a derivation that early. It now evaluates on
both.

Keep checking the invariant, from `tests.stdenv` instead. By then the
package set is complete, so forcing `outPath` is just a read.
The other twelve assertions in the stage read `passthru` and
`stdenv.cc.cc`, which are ungated, and stay where they are.

Assisted-by: claude-code with claude-opus-5[1m]-high
2026-08-10 00:50:54 +03:00
Johannes Kirschbauer
d4cc798ef8 Revert "Reapply "nixos/nixpkgs.config: make use of the module defined in config.nix""
This reverts commit e701ff054b.
2026-08-09 21:03:35 +02:00
xoconoch
5906cd4bb0 buildOpenSCADPackage: init
Co-authored-by: Yueh-Shun Li <shamrocklee@posteo.net>
2026-08-07 07:49:30 -06:00
nixpkgs-ci[bot]
80d96fac68 Merge staging-next into staging 2026-08-07 12:17:02 +00:00
Johannes Kirschbauer
e701ff054b Reapply "nixos/nixpkgs.config: make use of the module defined in config.nix"
Reapplies #517762, reverted in #518791.

Pass config = {} explicitly to prevent impure.nix from filling it
from NIXPKGS_CONFIG. This is equivalent to the old behavior where
inherit (cfg) config always overrode the impure.nix default.
2026-08-06 20:37:29 +02:00
Naïm Camille Favier
247113d5d2 makeBinaryWrapper: fix read past NUL (#541663) 2026-08-05 03:35:57 +00:00
Archit Gupta
d75cae80fa makeBinaryWrapper: fix read past NUL
When setting a prefix for a path-like environment variable, the
deduplication code in set_env_prefix reads past the NUL byte at the end
of the env val and into the next entry. This corrupts the resultant env
value with data from the next env var, or other data sitting after it.
2026-08-04 17:46:56 -07:00
Gutyina Gergő
9b45d8f347 test/pnpm: fix fixup-state-db test by storing SQL dump
Fixup-state-db is effectively only used in fetchPnpmDeps.
We previously included the SQLite database in the FOD, it was first
problematic as it produced different hashes on linux and darwin, but
SQLite version updates have a higher chance of changing the DB format
and break our hashes, that just happened with the 3.53.1 -> 3.53.3 bump.

Nowadays fetchPnpmDeps relies on the SQL dump of the database which is
more stable, but in the past hashes were broken once.

The point is, we no longer rely on the raw DB, but only it's dump, so
it's safe to assert for that in this test.
2026-08-02 19:24:56 +02:00
K900
584b9b1a80 tests.makeBinaryWrapper: fix broken tests (#505373) 2026-07-31 13:22:24 +00:00
Pol Dellaiera
fa413c392c fetchers: add fetchFromHuggingFace (#506303) 2026-07-30 16:17:49 +00:00
Andreas Rammhold
9db1435899 tests.problems: regenerate all the test fixtures
This drops the stack trace truncated marker from all the fixtures as
those aren't reliable. What we care about is the exact error message
and not the stack traces.
2026-07-24 11:39:29 +02:00
Andreas Rammhold
717e330f8e tests.problems: only match on the error message
This drops matching on the truncated stack trace marker as that only
appears if the stack trace is actually long enough. In some cases the
stack trace is simply too short so Nix prints it out entirely. Then
the tests fail and I'm unhappy.

This was caused by a90d993610 which to the best of my understanding
forces the error message very early in the eval and thus doesn't have
a very long stack trace.
2026-07-24 11:39:29 +02:00
Aliaksandr
196bcb0c78 stdenv: avoid reimporting bootstrap stages
Select local bootstrap stages once and pass them to custom and cross stage composition.

Assisted-by: codex with gpt-5.6-sol-high
2026-07-18 23:14:53 +03:00
Hugo Herter
4e9e357815 fetchers: add fetchFromHuggingFace
Add a Hugging Face Hub repository fetcher with support for model, dataset, and space repositories, custom Hub domains, tags and revisions, and the relevant fetchgit options.

Select storage through a backend argument. Git LFS is implemented through fetchgit; Xet is the default to match Hugging Face but fails explicitly until its implementation lands.

Expose the helper from pkgs, document its API, and register evaluation and fixed-output fetch tests.

Assisted-by: OpenAI Codex (GPT-5)
2026-07-18 13:48:57 +02:00
Aliaksandr
3d537076cb stdenv: fix replaceStdenv evaluation
Pass empty crossOverlays from the custom stdenv bootstrap and cover it with a regression test.

Assisted-by: codex with gpt-5.6-sol-high
2026-07-17 05:08:02 +03:00
Andreas Rammhold
1f248f342b tests.problems: Fix invalid-kind-error failure
With 8fcbb35929 all problem kinds are
being used in the error messages. The expected messages were still
missing the `maintainerless` kind.
2026-07-13 13:39:20 +02:00
Andreas Rammhold
4aef6f76d4 tests.problems: adjust test code for oldestSupportedRelease=26.05
In 53cd6f263c the oldestSupportedRelease
version was bumped to 26.05 which caused the meta/problems tests to
fail because the `config.allowBrokenPredicate` is now deprecated and
the code is warning about it.
2026-07-13 13:38:53 +02:00
Gutyina Gergő
0bcf0134e1 tests/pnpm: regenerate hash for pnpm-fixup-state-db
SQLite update changed the format of the raw DB (which this test uses)
and also the dump format. Supported `fetcherVersion`s in `fetchPnpmDeps`
no longer rely on the raw DB file being stable, so it's fine to update this hash.
2026-07-07 14:35:19 +02:00
Gutyina Gergő
de25c842e5 fetchPnpmDeps: drop fetcherVersion = 3 for pnpm_11 and the related test 2026-07-07 14:35:19 +02:00
Martin Weinelt
9ade44f1d4 Merge remote-tracking branch 'origin/staging' into staging-next
Conflicts:
- pkgs/top-level/nixpkgs-basic-release-checks.nix
2026-06-27 01:13:12 +02:00
Silvan Mosberger
eba1d51352 meta.problems: Internal refactoring
Makes future changes easier
2026-06-19 18:58:10 +02:00
nixpkgs-ci[bot]
0de070ddee Merge staging-next into staging 2026-06-16 07:59:06 +00:00
Matt Sturgeon
84588fd5b8 pkgsChecked, pkgsParallel, pkgsStrict, pkgsStructured: init (#531835) 2026-06-16 06:11:50 +00:00
SandaruKasa
9a35a7efd0 pkgsChecked, pkgsParallel, pkgsStructured: init 2026-06-15 23:47:38 +03:00
nixpkgs-ci[bot]
081b93be33 Merge staging-next into staging 2026-06-15 19:21:46 +00:00
Michael Daniels
3a5c240ffe tests.replaceVars: fix group mismatches
This fixes group mismatches observed on Darwin, e.g.:

```
replaceVars-succeeds
--- /nix/store/wahj58fiii5j1jy6s9mpbdyxzhq3plnb-source.txt
+++ /nix/store/bfmykrc9r5ycy0dj8l1z2p9c5116dny8-expected
├── stat {}
│ @@ -1,7 +1,7 @@
│
│    Size: 96        	Blocks: 0          IO Block: 4096   directory
│ -Device: 1,15	Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/   wheel)
│ +Device: 1,15	Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (  350/  nixbld)
│
│  Modify: 1970-01-01 00:00:01.000000000 +0000
```
2026-06-14 12:06:11 -04:00
nixpkgs-ci[bot]
59fccc960c Merge staging-next into staging 2026-06-14 07:38:15 +00:00
adisbladis
0e62149625 stdenv/problems: only run problem if it's not ignored (#519600) 2026-06-14 06:27:38 +00:00
nixpkgs-ci[bot]
e3a2cd0596 Merge staging-next into staging 2026-06-11 13:19:31 +00:00
Gutyina Gergő
994e6bd462 tests/pnpm: add opencloud 2026-06-11 14:53:45 +02:00
nixpkgs-ci[bot]
78e362a433 Merge staging-next into staging 2026-06-11 00:48:37 +00:00
Gergő Gutyina
d6913b3b7c pnpmConfigHook: add support for __structuredAttrs = true (#528517) 2026-06-10 21:53:32 +00:00
nixpkgs-ci[bot]
16753a2419 Merge staging-next into staging 2026-06-10 07:31:29 +00:00
Yueh-Shun Li
f3c00d2737 tests.overriding: attach fetchgit tests (#528679) 2026-06-10 06:01:27 +00:00
Yueh-Shun Li
eb76b98770 tests.overriding: tests-fetchurl: use generated non-zero hashes
Don't use zero hashes where the hash is supposed to be non-zero.

Don't depend on nix.src.hash as nix.src might be wrapped to accept patches.
2026-06-08 15:23:38 +08:00
Yueh-Shun Li
7328b0d9f1 tests.overriding: tests-fetchgit: use generated non-zero hashes
Don't use zero hashes where the hash is supposed to be non-zero.

Don't depend on nix.src.hash as nix.src might be wrapped to accept patches.
2026-06-08 15:23:38 +08:00
TANIGUCHI Kohei
b7367f5407 pkgs/test/pnpm: test pnpmConfigHook with multiple pnpmWorkspaces under __structuredAttrs
Assisted-by: Claude Code (Claude Opus 4.8) <noreply@anthropic.com>
2026-06-07 19:41:04 +01:00
nixpkgs-ci[bot]
6d151c9ef3 Merge staging-next into staging 2026-06-07 18:29:16 +00:00
HexoKnight
3cf8ae56a2 vimPlugins.*: ensure passthru.vimPlugin = true 2026-06-06 17:31:12 +01:00
nixpkgs-ci[bot]
566982b70a Merge staging-next into staging 2026-06-06 12:29:09 +00:00
Gergő Gutyina
3604c8c851 pnpm: switch to nodejs-slim (#514575) 2026-06-06 10:46:45 +00:00
Yueh-Shun Li
c781661674 tests.overriding: attach fetchgit tests
tests-fetchgit was implemented in commit 4e37d03ba2
("fetchgit: reference hash from finalAttrs.hash"),
but not attach to tests.overriding,
hence this fix.
2026-06-06 15:06:36 +08:00