Fix meson build on macOS in sandbox

Workaround at src/libstore/meson.build#L429-L434 by @Ericson2314 from
https://github.com/NixOS/nix/pull/11302 erroneously used `macos` instead
of `darwin` to distinguish macOS, while meson docs list only `darwin`:
https://mesonbuild.com/Reference-tables.html#operating-system-names.

Original thread: https://github.com/NixOS/nix/issues/2503#issuecomment-2353184049
This commit is contained in:
Yuriy Taraday 2024-09-17 16:15:39 +02:00
parent 95f2b2beab
commit c7c3a7f667

View file

@ -427,7 +427,7 @@ extra_pkg_config_variables = {
}
# Working around https://github.com/mesonbuild/meson/issues/13584
if host_machine.system() != 'macos'
if host_machine.system() != 'darwin'
extra_pkg_config_variables += {
'localstatedir' : get_option('localstatedir'),
}