1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/doc/hooks
Alyssa Ross 10f35ff05d meson.setupHook: prefer meson commands over ninja
Meson now comes with its own set of commands for building, testing,
installing etc., that by default wrap around Ninja.  The reason to
prefer using the Meson commands is that they take additional
options (e.g. setting custom timeouts for tests — my motivation for
this change).

Here, I've modified the Meson setup hook so that Meson's test and
install commands will be used instead of Ninja's when Meson's
configurePhase is used.  This restriction is to avoid starting to run
Meson directly when dealing with custom build systems that wrap around
Meson, like QEMU's.  We don't use meson's compile command, as it just
runs ninja, and that's handled fine by the existing Ninja setup hook.

Naturally the Meson commands don't support entirely the same set of
options that the Ninja ones did, but I checked through Nixpkgs to find
any packages using Meson that used any options that wouldn't be picked
up by this new system.  I only found one, and it was just setting
checkTarget = "test", which is the default value for Ninja and has no
Meson equivalent (because we directly tell Meson to run the tests
rather than going through a generic job system like Ninja).

Link: https://github.com/NixOS/nixpkgs/issues/113829
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2023-10-09 10:21:36 +00:00
..
autoconf.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
automake.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
autopatchelf.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
bmake.section.md doc: include short docs about bmake 2023-09-22 01:38:23 -03:00
breakpoint.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
cmake.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
gdk-pixbuf.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
ghc.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
gnome.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
index.md doc: include short docs about bmake 2023-09-22 01:38:23 -03:00
installShellFiles.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
libiconv.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
libxml2.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
meson.section.md meson.setupHook: prefer meson commands over ninja 2023-10-09 10:21:36 +00:00
mpi-check-hook.section.md treewide: Fix typos 2023-09-28 19:06:13 +02:00
ninja.section.md meson.setupHook: prefer meson commands over ninja 2023-10-09 10:21:36 +00:00
patch-rc-path-hooks.section.md
perl.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
pkg-config.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
postgresql-test-hook.section.md postgresqlTestHook: run postgresqlTestSetupPost hook after setting up 2023-01-25 18:46:27 +08:00
python.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
qt-4.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
scons.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
tetex-tex-live.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
unzip.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
validatePkgConfig.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
waf.section.md doc/hooks/waf.section.md: rewrite 2023-09-10 16:23:22 -03:00
xcbuild.section.md doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
zig.section.md doc/hooks/zig.section.md: rewrite 2023-09-10 16:23:27 -03:00