1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00
nixpkgs/pkgs/development
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
..
androidndk-pkgs
beam-modules
bower-modules/generic
chez-modules
compilers Merge staging-next into staging 2023-10-09 00:03:06 +00:00
coq-modules
dhall-modules
dotnet-modules/patches
em-modules/generic
embedded
gnuradio-modules
guile-modules
haskell-modules
idris-modules
interpreters Merge staging-next into staging 2023-10-09 00:03:06 +00:00
java-modules
libraries Merge #254965: libopenmpt: 0.7.2 -> 0.7.3 2023-10-09 10:24:19 +02:00
lisp-modules
lisp-modules-new-obsolete
lisp-modules-obsolete
lua-modules
misc
mobile
nim-packages
node-packages
ocaml-modules Merge pull request #259124 from r-ryantm/auto-update/ocamlPackages.pprint 2023-10-08 11:03:32 -07:00
octave-modules
perl-modules
pharo
php-packages
python-modules Merge staging-next into staging 2023-10-09 00:03:06 +00:00
python2-modules
quickemu
r-modules
rocm-modules/update-script
ruby-modules
scheme-modules/scheme-bytestructures
skaware-packages
tools meson.setupHook: prefer meson commands over ninja 2023-10-09 10:21:36 +00:00
web Merge staging-next into staging 2023-10-09 00:03:06 +00:00