571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
1.6 KiB
Diff
28 lines
1.6 KiB
Diff
diff --git a/meson.build b/meson.build
|
|
index 01e18a9..5dbb2fc 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -12,8 +12,8 @@ libdir = join_paths(prefix, get_option('libdir'))
|
|
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
|
localedir = join_paths(prefix, get_option('localedir'))
|
|
|
|
-installed_tests_metadir = join_paths(datadir, 'installed-tests', meson.project_name())
|
|
-installed_tests_execdir = join_paths(libexecdir, 'installed-tests', meson.project_name())
|
|
+installed_tests_metadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
|
|
+installed_tests_execdir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
|
|
|
|
cc = meson.get_compiler('c')
|
|
host_system = host_machine.system()
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
index c566ccd..80f7c33 100644
|
|
--- a/meson_options.txt
|
|
+++ b/meson_options.txt
|
|
@@ -10,6 +10,7 @@ option('environment_proxy', type: 'feature', value: 'auto', description: 'suppor
|
|
option('libproxy', type: 'feature', value: 'auto', description: 'support for libproxy proxy configration')
|
|
option('gnome_proxy', type: 'feature', value: 'auto', description: 'support for GNOME desktop proxy configuration')
|
|
option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
|
|
+option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')
|
|
option('debug_logs', type: 'boolean', value: false, description: 'enable debug log messages (slow)')
|
|
|
|
# Deprecated, use -Ddefault_library=static instead.
|