Commit graph

95 commits

Author SHA1 Message Date
Wolfgang Walther aefcb0d50d
treewide: run nixfmt 1.0.0 2025-07-24 14:58:18 +02:00
Wolfgang Walther a46262ae77
treewide: run treefmt with mdcr/nixfmt 2025-07-24 14:58:15 +02:00
aleksana d5afa4954b doc/installShellFiles: describe fifo more accurately
(cherry picked from commit b0c8f2be7d)
2025-06-17 02:40:48 +00:00
TomaSajt a105a3b79e doc/tauri: fix example, make openssl linux-only
(cherry picked from commit 0605191248)
2025-05-17 09:04:41 +00:00
Kalle Ahlström bedc1f26c3 doc/tauri: move wrapGAppsHook4 to only be included in linux builds 2025-05-16 10:20:40 +02:00
awwpotato 2cf25e711c Revert "installShellFiles: add emulator doc for installShellCompletion"
This reverts commit 149a6e0a91.

See discussion in https://github.com/NixOS/nixpkgs/issues/308283 for
more details on why this isn't something we want to suggest.
2025-05-14 14:54:31 -04:00
Sandro 99dd92d76f
ctestCheckHook: init, {pdal,gifticlib,zynaddsubfx}: migrate to ctestCheckHook (#379426) 2025-05-09 16:47:09 +02:00
awwpotato 76c5b6cc00
doc: remove useFetchCargoVendor 2025-04-26 15:26:20 -07:00
Sergei Zimmerman 00b1aef96b
ctestCheckHook: init
Motivation for this hook is simple: there's no single documented
way to do trivial things with ctest:

1. Pass additional flags to ctest invocation.
2. Selectively disable tests in a mechanism similar to python's
   `disabledTests` or rust's composable skips in `checkFlags`.
3. Disable parallel checking.

Current state of things has lead to several different solutions:

1. Completely overriding `checkPhase` [1] and invoking ctest manually
   with the necessary flags. This is most often coupled with `-E` for
   disabling test or setting parallel level.
2. Wrangling with weird double string/regex escaping and trying to stuff
   additional parameters and/or exclusion regex via `CMAKE_CTEST_ARGUMENTS`.
   This approach is especially painful when test names have spaces. This is
   the reason I originally decided to implement this hook after wrangling with
   failing darwin tests here [2].
3. Stuffing additional arguments into `checkFlagsArray` with the
   `ARGS` makefile parameter [3].

I don't see any reason to keep the status-quo. Doing something along these
lines has been suggested [4] for both `ctest` and `meson`. Meson setup-hook
has switched from `ninja` to `meson` in [5] with little friction. Doing
the same for cmake in a single sweep would prove problematic due to the
aforementioned zoo of workarounds and hacks for `ctest`. Doing it via
a separate hook would allow us to refactor things piecemeal and without
going through staging. The benefit of the hook is immediately clear and it
would allow to drive the refactor tractor at a comfortable pace.

[1]: pd/pdal/package.nix:117, cc/ccache/package.nix:108, gl/glog/package.nix:79
[2]: https://www.github.com/NixOS/nixpkgs/pull/375955
[3]: op/open62541/package.nix:114
[4]: https://www.github.com/NixOS/nixpkgs/issues/113829
[5]: https://www.github.com/NixOS/nixpkgs/pull/213845
2025-04-26 16:48:53 +00:00
Pol Dellaiera b4515ff6c2 doc: use finalAttrs pattern 2025-04-21 07:02:49 +02:00
Pol Dellaiera bcea0cf344 doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
Pol Dellaiera 5d979e79ce doc: fix various nix snippets 2025-04-17 01:30:34 +02:00
David McFarland 0159ddabe6
dotnet: implement autoPatchcilHook (#373107) 2025-04-16 09:20:39 -03:00
GGG e2d963b9f6 docs/autoPatchcilHook: init 2025-04-10 10:06:57 -03:00
Dmitry Kalinkin 1da8df70f6
waf: make executable runnable (#388010) 2025-03-27 12:42:10 -04:00
nixpkgs-ci[bot] a9379697ea
Merge staging-next into staging 2025-03-22 18:05:14 +00:00
ZHAO Jin-Xiang 149a6e0a91 installShellFiles: add emulator doc for installShellCompletion 2025-03-16 23:57:39 +08:00
Olivér Falvai 74c386d399
memcachedTestHook: init 2025-03-12 19:29:34 +01:00
Olivér Falvai aa01fb4e17
redisTestHook: init 2025-03-12 18:52:35 +01:00
Alyssa Ross 3e5b235146 doc: recommend fetchCargoVendor
Cargo 1.84.0 broke fetchCargoTarball hashes, so fetchCargoTarball is
not long for this world.  Tell people to use fetchCargoVendor, which
Nixpkgs is currently in the process of switching to across the tree.
2025-01-28 11:52:55 +01:00
Seth Flynn d73ab2f142
doc: emphasize trade-off between versionCheckHook and testers.testVersion (#344321) 2025-01-27 00:44:44 -05:00
Peder Bergebakken Sundt 4762d9ba6e doc: emphasize trade-off between versionCheckHook and testers.testVersion 2025-01-26 17:11:00 +01:00
Jörg Thalheim 3e81636c90 docs/breakpointHook: simplify instructions 2025-01-05 14:36:05 +01:00
seth ed6c067f25
doc/tauri: use tauri 2.0 dependencies & new darwin SDK pattern in example (#357148)
* doc/tauri: use tauri 2.0 dependencies in example

* doc/tauri: use new darwin SDK pattern in example

Part of https://github.com/NixOS/nixpkgs/issues/354146
2024-12-04 00:31:45 -05:00
github-actions[bot] 00b1e226f7
Merge master into staging-next 2024-11-12 06:05:05 +00:00
Sefa Eyeoglu 86d9f7ed0d
doc/tauri: stdenv.is* -> stdenv.hostPlatform.is*
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-11 20:23:49 +01:00
github-actions[bot] 24e5e7f5fc
Merge master into staging-next 2024-11-10 06:04:29 +00:00
Tomodachi94 27a103786c
doc/hooks/aws-c-common: init (#351394) 2024-11-09 20:30:59 -08:00
Tomo 176eb0a3d9 doc/hooks/aws-c-common: init
Part of #341479
2024-11-10 02:39:27 +00:00
github-actions[bot] 670be3a8ed
Merge staging-next into staging 2024-11-01 06:05:13 +00:00
Aleksana 3ef9175dad
doc/hooks/xfce4-dev-tools: document hook (#351512) 2024-11-01 11:01:31 +08:00
Tomo 1eeac53329 doc/hooks/xfce4-dev-tools: document hook
Part of #341479

Related: https://github.com/orgs/NixOS/projects/67/views/1?pane=issue&itemId=84912848
2024-10-31 21:48:26 +00:00
github-actions[bot] 8ef263c335
Merge staging-next into staging 2024-10-31 06:05:30 +00:00
github-actions[bot] 4f5d1a2355
Merge master into staging-next 2024-10-31 06:05:03 +00:00
Tomo 5dc0f222b4 doc/hooks/just: fix link
Related:
https://github.com/casey/just/issues/2368
2024-10-24 07:01:14 +00:00
github-actions[bot] 5d3d06d621
Merge staging-next into staging 2024-10-22 06:05:27 +00:00
Fabián Heredia Montiel 1b7dd985dc Merge remote-tracking branch 'origin/master' into staging-next 2024-10-21 19:17:30 -06:00
John Ericson 53c11b7bb7
meson/setup-hook.sh: make build directory configurable (#342868) 2024-10-21 17:31:27 -04:00
John Ericson 1e30137109 doc: Improve CMake setup hook docs, following Meson's
See also #342868
2024-10-21 12:22:10 -04:00
Valentin Gagarin 1ceba9367c meson/setup-hook.sh: make build directory configurable 2024-10-21 12:11:35 -04:00
Bobby Rong 87063ab9d8
doc/tauri: Don't use alias in example
Fixes ccec93c1c7.
2024-10-14 20:54:20 +08:00
Lin Jian 7e72cc4e38
doc: fix typo 2024-10-11 09:22:13 +08:00
Peder Bergebakken Sundt 8cf439638d
doc/hooks/desktop-file-utils: document hook (#341280) 2024-10-06 16:04:49 +02:00
seth ec696bd85d
doc: init tauri hook section 2024-09-30 20:13:14 -04:00
h7x4 a3626a459d
doc/hooks/just: add documentation (#341871) 2024-09-17 08:14:22 +02:00
Peder Bergebakken Sundt 0bf16eb3ad
doc/hooks/haredo: add documentation (#341886) 2024-09-16 01:44:20 +02:00
Tomodachi94 015b6667ef doc/hooks/premake: add documentation
Added by https://github.com/NixOS/nixpkgs/pull/51205

Part of #341479
2024-09-15 16:20:20 +02:00
Tomodachi94 6157b42ca7
doc/hooks/haredo: add documentation
Hook introduced in #269767 by @pbsds.

Part of #341479.
2024-09-14 10:33:41 -07:00
Tomodachi94 41b5974cb2
doc/hooks/just: add documentation
Introduced in #247147

Part of #341479
2024-09-14 09:09:34 -07:00
Tomo 94eeb71d25
doc/hooks/cernlib: document CERNLIB hook (#341691) 2024-09-14 01:26:40 -04:00