Skip to content

Commit

Permalink
Fix meson build on macOS in sandbox
Browse files Browse the repository at this point in the history
Workaround at src/libstore/meson.build#L429-L434 by @Ericson2314 from
NixOS#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: NixOS#2503 (comment)
  • Loading branch information
YorikSar committed Sep 17, 2024
1 parent 95f2b2b commit c7c3a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}
Expand Down

0 comments on commit c7c3a7f

Please sign in to comment.