-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Meson/ninja setup hooks #28444
Add Meson/ninja setup hooks #28444
Conversation
@lluchs, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sternenseemann, @bjornfor and @Mic92 to be potential reviewers. |
Looks very nice to me! Few comments though: does this one other package benefit/get broken from this setup-hook:
What about these using ninja (without meson)?:
|
Thanks for the hint, I'm going to try building those packages.
|
One thing I noticed is that meson.overrideDerivation (attrs: {
postPatch = ''
sed -i -e 's|e.fix_rpath(install_rpath)||' mesonbuild/scripts/meson_install.py
'';
}) |
These are all handled by ninja's setup hook.
Ninja is a runtime dependency here. However, cmake can generate Ninja build files as well to satisfy the setup hook.
qtwebengine is still building, but I think they're all working now! Edit: qtwebengine fails on install, I'll fix that... @yorickvP I think this is a separate issue as it doesn't really depend on the setup hook. |
Would it be also possible to set
|
@jtojnar: |
@vcunat yes, I am currently adding it manually for GNOME packages but extending the setup hook would be more convenient. I did not make a pull request since I have not been sure if having a separate |
Motivation for this change
Lots of packages have been switching to Meson recently. The setup hooks should make updating these packages easier and prevent duplication in configure/build/install scripts.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)