Commit graph

1085 commits

Author SHA1 Message Date
Silvan Mosberger
27dd434480 stdenv.mkDerivation: Initial RFC 127 implementation
See https://github.com/NixOS/rfcs/blob/master/rfcs/0127-issues-warnings.md

Co-Authored-By: piegames <git@piegames.de>
Co-Authored-By: AkechiShiro <14914796+AkechiShiro@users.noreply.github.com>
2026-02-26 14:53:30 +01:00
nixpkgs-ci[bot]
53793439fd
Merge master into staging-next 2026-02-21 00:22:53 +00:00
Robert Scott
0f998b2204
tests.hardeningFlags: only inspect .text section in instructionPresenceTest (#492221) 2026-02-20 21:01:25 +00:00
nixpkgs-ci[bot]
9af8e8ea80
Merge master into staging-next 2026-02-20 18:13:26 +00:00
Robert Scott
34a81df019 tests.hardeningFlags: only inspect .text section in instructionPresenceTest
other sections may include code that doesn't originate from
the compiler under test or may not obey flags in the same
way.

this should fix our pacret-detecting tests.
2026-02-19 19:29:41 +00:00
Emily
c3ea9587fa tests.cross: extend the existing config 2026-02-19 16:07:57 +00:00
Emily
36e1dea26b tests.stdenv: extend the existing config 2026-02-19 16:07:57 +00:00
Emily
368b0d3689 tests.config: extend the existing config 2026-02-19 16:07:31 +00:00
Robert Schütz
18fe5028e8 Merge branch 'master' into staging-next 2026-02-13 08:47:32 -08:00
Yueh-Shun Li
eddb12ac9d
mkDerivation: make allowedReferences/allowedRequisites nullable when __structuredAttrs is true 2026-02-12 17:03:57 -08:00
Guillaume Maudoux
3eee223461
auto-patchelf: add --structured-logs feature, add test (#483740) 2026-02-02 11:14:51 +00:00
Florian Klink
c45f008187 auto-patchelf: add IgnoredDependency event
This logs when there was a missing dependency that was matched by an
ignore pattern.

The test case is extended to also check for having the IgnoredDependency
events in the structured log output.
2026-01-27 13:20:46 +02:00
Aleksi Hannula
3b2053bc5e
tests.stdenv: fix remaining patch-shebangs tests 2026-01-26 21:45:18 +02:00
dish
44c0cd2165
tests.stdenv: fix preserves-binary-data test 2026-01-26 21:45:18 +02:00
Aleksi Hannula
5500570e9f
stdenv: refactor to hook up minimal-bootstrap 2026-01-26 21:45:18 +02:00
Florian Klink
518d82c5be tests.auto-patchelf-structured-log: init
This adds a test for the --structured-log feature of auto-patchelf.

When auto-patchelf'ing ToneLib-Jam and only making freetype available,
we expect:

 - one "SetInterpreter" line
 - 3 "Dependency" lines (of which one found)
 - one SetRpath line (containing freetype)
2026-01-25 21:37:36 +02:00
nixpkgs-ci[bot]
23a2df36ea
Merge master into staging-next 2026-01-18 18:05:48 +00:00
Wolfgang Walther
d5b81a3b69
tests: migrate some tests from all-packages (#435000) 2026-01-18 14:59:50 +00:00
Wolfgang Walther
2503778146
teams/mercury: handle team with external membership (#478845) 2026-01-18 14:17:32 +00:00
Wolfgang Walther
97fe4a07cb
teams/mercury: drop 2026-01-18 15:12:20 +01:00
jopejoe1
9e568d613d tests.stdenv: migrate tests-stdenv-gcc-stageCompare from all-packages 2026-01-16 20:31:57 +01:00
jopejoe1
d0f58c54f2 tests: migrate home-assistant-component-tests from all-packages 2026-01-16 20:31:57 +01:00
nixpkgs-ci[bot]
dd86763902
Merge master into staging-next 2026-01-12 00:19:46 +00:00
Wolfgang Walther
9de6bb676b
release.nix: move lib-tests into regular nixpkgs tests attrs set (#471130) 2026-01-11 21:22:10 +00:00
K900
f54c9f15f8 Merge remote-tracking branch 'origin/staging-next' into staging 2026-01-11 21:58:16 +03:00
Robert Hensing
7ab1c2b1e3
haskellPackages.buildFromCabalSdist: respect patches (#474754) 2026-01-11 15:49:40 +00:00
nixpkgs-ci[bot]
3fa7bb6ca1
Merge staging-next into staging 2026-01-06 00:19:30 +00:00
Colin
a27b6de09b
vmTools: add in 9 RHEL-adjacent distros, upgrade Debian/Ubuntu (#471901) 2026-01-05 22:41:47 +00:00
Matt Sturgeon
f52e77de34
treewide: use overlays to pass a custom stdenv to buildPythonPackage / bulidPythonApplication (#476401) 2026-01-05 19:33:00 +00:00
nixpkgs-ci[bot]
574ec5369e
Merge staging-next into staging 2026-01-05 18:07:32 +00:00
Philip Taron
db467c36ec
vmTools: use callPackage and fix rotted tests 2026-01-05 09:57:09 -08:00
Philip Taron
a1d2a411b2
prefer-remote-fetch: Fix evaluation for all fetchers and export additional attributes (#475142) 2026-01-05 15:04:59 +00:00
Leona Maroni
9667e939fa
test/overriding: remove python deprecated stdenv override tests
These tests now throw a warning which is prohibited inside Nixpkgs:
  Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g:
    buildPythonPackage.override { stdenv = customStdenv; } { }
2026-01-05 15:44:40 +01:00
Dustin Frisch
96ed29f4b7
prefer-remote-fetch: Fix evaluation for all fetchers and export additional attributes 2025-12-29 21:11:02 +01:00
Robert Hensing
b6a3b8846e haskell.lib.buildFromSdist: add test, fix double-patch
Same issue as buildFromCabalSdist: sdistTarball applies patches via
overrideDerivation, but the patches attribute remained, causing
patchPhase to apply them again.
2025-12-28 15:31:09 +01:00
Robert Hensing
5a38e15e6d haskellPackages.buildFromCabalSdist: add test, fix double-patch
srcOnly applies patches, but the resulting derivation still had the
patches attribute, causing patchPhase to apply them again. Clear
patches after srcOnly to prevent double-application.
2025-12-28 15:26:33 +01:00
Florian Klink
4f0b794d15 tests.auto-patchelf-hook-preserve-origin: init
This adds a test for the autoPatchelfHook --preserve-origin feature.
2025-12-17 15:21:30 +02:00
jopejoe1
a58d4838e7 release.nix: move lib-tests into regular nixpkgs tests attrs set
this makes it get tested on all of our supported platforms
2025-12-15 20:46:21 +01:00
nixpkgs-ci[bot]
6b5a50c011
Merge staging-next into staging 2025-12-13 06:06:37 +00:00
John Ericson
e3a74fdac2
fix inputDerivation in case of __structuredAttrs (#469652) 2025-12-13 04:46:57 +00:00
Taeer Bar-Yam
97c3645990 stdenv: add tests for inputDerivation with allowedReferences, etc.
Co-authored-by: infinisil <github@infinisil.com>

!fixup every test needs a meta field?

!fixup refactor inputDerivation tests

!fixup fix tests
2025-12-12 20:23:22 +01:00
nixpkgs-ci[bot]
9d911c99bc
Merge staging-next into staging 2025-12-12 12:08:28 +00:00
Matt Sturgeon
553a6c3d3a
buildPython*: preserve overrideStdenvCompat on subsequent overrides
This is needed to support the deprecated method of overriding `stdenv`
via `overridePythonAttrs`.
2025-12-11 01:15:17 +00:00
nixpkgs-ci[bot]
795ce4c7c1
Merge staging-next into staging 2025-12-11 00:19:41 +00:00
Yueh-Shun Li
06711e45a0 tests.overriding: add overridePythonAttrs-stdenv-deprecated
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-11 03:54:59 +08:00
Yueh-Shun Li
dacf4930a9 tests.overriding: test buildPythonPackage.override
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-11 03:41:43 +08:00
Yueh-Shun Li
db3a787f4d tests.overriding: rename local variable python-package-stub -> package-stub 2025-12-11 03:16:53 +08:00
Yueh-Shun Li
ff13d8ce45
makeOverridablePythonPackage: simplify implementation and make compatible with <pkg>.overrideAttrs (#267296) 2025-12-10 19:06:55 +00:00
Wolfgang Walther
46c0c0eae7
Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00