1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Simplify the Meson now that upstream bug is fixed

Upstream bug is https://github.com/mesonbuild/meson/issues/13584.

This PR will fail for now, but eventually after Meson is bumped in
Nixpkgs, it will succeed.
This commit is contained in:
John Ericson 2025-04-24 11:51:10 -04:00
parent 8a1c40b927
commit ba354cc649
2 changed files with 2 additions and 13 deletions

View file

@ -352,13 +352,7 @@ libraries_private = []
extra_pkg_config_variables = {
'storedir' : get_option('store-dir'),
}
# Working around https://github.com/mesonbuild/meson/issues/13584
if host_machine.system() != 'darwin'
extra_pkg_config_variables += {
'localstatedir' : get_option('localstatedir'),
}
endif
subdir('nix-meson-build-support/export')

View file

@ -5,7 +5,6 @@ project('nix', 'cpp',
# TODO(Qyriad): increase the warning level
'warning_level=1',
'errorlogs=true', # Please print logs for tests that fail
'localstatedir=/nix/var',
],
meson_version : '>= 1.4',
license : 'LGPL-2.1-or-later',
@ -249,11 +248,7 @@ custom_target(
# TODO(Ericson3214): Dosen't yet work
#meson.override_find_program(linkname, t)
localstatedir = nix_store.get_variable(
'localstatedir',
default_value : get_option('localstatedir'),
)
assert(localstatedir == get_option('localstatedir'))
localstatedir = nix_store.get_variable('localstatedir')
store_dir = nix_store.get_variable('storedir')
subdir('scripts')
subdir('misc')