Commit Graph

201 Commits

Author SHA1 Message Date
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
7c6f434c
8cec5475cf buildOpenSCADPackage: init (#536489) 2026-08-10 23:29:30 +00: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
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
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
Matt Sturgeon
75a1c47a4e tests.{qt5,qt6}.wrapQtAppsHook: add coverage
Test that wrapQtAppsHook:
- normalizes qtWrapperArgs to a bash array
- preserves user-supplied wrapper arguments
- appends the expected Qt wrapper arguments
- produces wrappers with the expected runtime behaviour
2026-06-04 01:43:31 +01:00
Martin Weinelt
6cba250893 Revert "Reapply "nixos/nixpkgs.config: make use of the module defined in config.nix"" 2026-05-10 20:27:56 +02:00
Johannes Kirschbauer
3eec0ac0dc pkgs/test/config-nix-unit: use builtins.path with stable name 2026-05-09 12:52:12 +02:00
Johannes Kirschbauer
86cd4e7bc8 Reapply "nixos/nixpkgs.config: make use of the module defined in config.nix"
This reverts commit a06a6caa6b.
2026-05-07 19:11:47 +02:00
K900
a06a6caa6b Revert "nixos/nixpkgs.config: make use of the module defined in config.nix" 2026-05-07 15:38:29 +03:00
Robert Hensing
a0ffa8bf93 nixos/nixpkgs.config: make use of the module defined in config.nix (#489889) 2026-05-07 10:33:20 +00:00
Johannes Kirschbauer
1d1e96211e nixos/nixpkgs.config: use deferredModule to avoid double evaluation
Switch the option type to `deferredModuleWith`, which collects definitions without evaluating them.
The raw definitions are forwarded to nixpkgs function via a new internal `_configDefinitions` parameter.

`apply` on the option returns `finalPkgs.config`, preserving
backwards compatibility for external readers of `config.nixpkgs.config`
2026-05-04 10:05:11 +02:00
Sam Pointon
37955437a7 fetchPnpmDeps: don't fail on empty lockfile
If the lockfile is empty, no files will be put in the output directory. 
In this case, the find invocations produce an empty list of results. 
xargs' default behaviour is to always invoke its command at least once; 
if its input is empty, then its command will not be passed any 
filenames. This produces an invocation like `chmod 555`. chmod, however, 
fails in this case, expecting an operand. So we need to tell xargs not 
to invoke its command at all in the case of empty input.
2026-04-26 19:33:22 +01:00
nixpkgs-ci[bot]
e3de80b94e Merge master into staging-next 2026-04-12 06:34:02 +00:00
Martin Weinelt
62148d3046 tests.home-assistant-components: shorten attrset name
from tests-home-assistant-component-tests.
2026-04-12 02:07:26 +02:00
Philip Taron
873d9a9288 buildEnv: support fixed-point arguments (#432957) 2026-03-25 14:05:49 +00:00
Nadja Yang
9f1cb0f57c buildLakePackage: add weak-minimax test
Verifies that buildLakePackage works with nix-only deps (no
lake-manifest.json).  Builds a proof of the weak minimax inequality
from Mathlib.Order.CompleteLattice.Basic using leanDeps = [ mathlib ].
2026-03-21 17:53:43 -04: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
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
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
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
nixpkgs-ci[bot]
3fa7bb6ca1 Merge staging-next into staging 2026-01-06 00:19:30 +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
Dustin Frisch
96ed29f4b7 prefer-remote-fetch: Fix evaluation for all fetchers and export additional attributes 2025-12-29 21:11:02 +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
jopejoe1
6a11d4a70b tests.pkgs-lib: expose the tests included in it 2025-12-08 12:01:06 +01:00
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
Michael Daniels
2b9641e5df tests.fetchFromGitHub: init
Copied from pkgs/build-support/fetchgit/tests.nix, see there for attribution.
2025-10-02 21:47:29 -04:00
Emily
2dac87bbde llvmPackages_17: drop 2025-09-14 19:03:24 +01:00
Emily
a892ce396d llvmPackages_16: drop 2025-09-14 19:03:24 +01:00
Emily
77acbe1f9c llvmPackages_15: drop 2025-09-14 19:03:24 +01:00
Emily
f470ea24b6 llvmPackages_14: drop 2025-09-14 19:03:24 +01:00
Emily
791fe23b63 llvmPackages_13: drop 2025-09-14 19:03:24 +01:00
Emily
9b8a66c3a4 llvmPackages_12: drop 2025-09-14 19:03:24 +01:00
K900
3d4257c912 Merge remote-tracking branch 'origin/master' into staging-next 2025-09-08 22:24:07 +03:00
Emily
755e2cbf31 tests.cc-wrapper.supported: update list of aliases
This is pretty horrible and we should figure out a better way of
doing this…
2025-09-08 04:37:51 +01:00
K900
fa2f6adfe6 Merge remote-tracking branch 'origin/master' into staging-next 2025-09-03 21:17:21 +03:00
Wolfgang Walther
d0c0b875f7 treewide: remove __recurseIntoDerivationForReleaseJobs
This attribute was supposed to be set on derivations, to make the
release tools recurse into them. The remaining uses were all on regular
attrsets, though, so this is safe to remove.
2025-08-31 20:54:49 +02:00
K900
92c54de171 Merge remote-tracking branch 'origin/staging-next' into staging 2025-08-28 12:55:20 +03:00
staticdev
e27f6eba7c fetchNextcloudApp: add pkgs.test 2025-08-27 18:46:12 +02:00
Paul Meyer
cf4e81e3bc buildGoModule: add buildTestBinaries option, add tests (#427334) 2025-08-12 10:14:14 +02:00
Philip Taron
2e2bf9915b fetchFromBitbucket: url escape rev (#386460) 2025-08-06 11:44:04 -07:00
Paul Meyer
1d2563835a buildGoModule: add test for buildTestBinaries
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2025-07-29 11:38:36 +02:00