Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / appstream / installed-tests-path.patch
blob188c1e52589023e948bdb145cb951890d3be0d16
1 diff --git a/meson_options.txt b/meson_options.txt
2 index 8dd8e0c7..e2a30b06 100644
3 --- a/meson_options.txt
4 +++ b/meson_options.txt
5 @@ -44,6 +44,11 @@ option('install-docs',
6 value : true,
7 description : 'Install documentation for API and specification'
9 +option('installed_test_prefix',
10 + type : 'string',
11 + value : '',
12 + description : 'Prefix for installed tests'
16 # For development
17 diff --git a/tests/installed-tests/meson.build b/tests/installed-tests/meson.build
18 index 405820ce..f592a753 100644
19 --- a/tests/installed-tests/meson.build
20 +++ b/tests/installed-tests/meson.build
21 @@ -10,5 +10,5 @@ configure_file(
22 output : 'metainfo-validate.test',
23 configuration : itconf,
24 install: true,
25 - install_dir: join_paths('share', 'installed-tests', 'appstream'),
26 + install_dir: join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', 'appstream'),