nixpkgs/pkgs/desktops/pantheon/desktop/gala/plugins-dir.patch

21 lines
997 B
Diff
Raw Normal View History

2018-08-20 22:31:18 +02:00
diff --git a/meson.build b/meson.build
index 78113d6..926596c 100644
2018-08-20 22:31:18 +02:00
--- a/meson.build
+++ b/meson.build
@@ -24,13 +24,14 @@ vapi_dir = meson.current_source_dir() / 'vapi'
data_dir = join_paths(get_option('prefix'), get_option('datadir'))
plugins_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'plugins')
+plugins_dir_for_build = join_paths('/run/current-system/sw/lib/', meson.project_name(), 'plugins')
pkgdata_dir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
pkglib_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name())
conf = configuration_data()
2018-08-20 22:31:18 +02:00
conf.set_quoted('DATADIR', data_dir)
conf.set_quoted('PKGDATADIR', pkgdata_dir)
-conf.set_quoted('PLUGINDIR', plugins_dir)
+conf.set_quoted('PLUGINDIR', plugins_dir_for_build)
conf.set_quoted('RESOURCEPATH', '/org/pantheon/desktop/gala')
2018-08-20 22:31:18 +02:00
conf.set_quoted('VERSION', gala_version)
conf.set_quoted('SCHEMA', 'org.pantheon.desktop.gala')