nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/meson.build b/meson.build
2index 4238adb..d3f89fd 100644
3--- a/meson.build
4+++ b/meson.build
5@@ -43,8 +43,8 @@ if dataroot_dir == ''
6 dataroot_dir = datadir
7 endif
8
9-installed_tests_dir = prefix / libexecdir / 'installed-tests' / meson.project_name()
10-installed_tests_data_dir = prefix / datadir / 'installed-tests' / meson.project_name()
11+installed_tests_dir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / meson.project_name()
12+installed_tests_data_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / meson.project_name()
13 docs_dir = datadir / 'doc' / meson.project_name()
14
15 summary({
16diff --git a/meson_options.txt b/meson_options.txt
17index ed8c311..0a2bf7e 100644
18--- a/meson_options.txt
19+++ b/meson_options.txt
20@@ -54,3 +54,7 @@ option('sandboxed-sound-validation',
21 type: 'feature',
22 value: 'enabled',
23 description: 'Use Bubblewrap to sandbox sound validation. Disabling this option may lead to security vulnerabilities.')
24+option('installed_test_prefix',
25+ type: 'string',
26+ value: '',
27+ description: 'Prefix for installed tests')