python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / json-glib / meson-add-installed-tests-prefix-option.patch
blob626db09cd03f1114a5606ba7148675d8bace9c33
1 diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build
2 index 1eb56c8..dca444e 100644
3 --- a/json-glib/tests/meson.build
4 +++ b/json-glib/tests/meson.build
5 @@ -21,8 +21,9 @@ test_data = [
6 'stream-load.json',
9 -installed_test_bindir = join_paths(json_libexecdir, 'installed-tests', json_api_name)
10 -installed_test_datadir = join_paths(json_datadir, 'installed-tests', json_api_name)
11 +installed_test_prefix = get_option('installed_test_prefix')
12 +installed_test_bindir = join_paths(installed_test_prefix, 'libexec', 'installed-tests', json_api_name)
13 +installed_test_datadir = join_paths(installed_test_prefix, 'share', 'installed-tests', json_api_name)
15 install_data(test_data, install_dir: installed_test_bindir)
17 diff --git a/meson_options.txt b/meson_options.txt
18 index 068a03f..03f398a 100644
19 --- a/meson_options.txt
20 +++ b/meson_options.txt
21 @@ -10,3 +10,6 @@ option('man',
22 option('tests',
23 type: 'boolean', value: true,
24 description: 'Build the tests')
25 +option('installed_test_prefix',
26 + description: 'Prefix for installed tests',
27 + type: 'string')