nixpkgs/pkgs/development/libraries/pipewire/0080-pipewire-config-dir.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

diff --git a/meson.build b/meson.build
2021-04-27 07:46:08 +00:00
index a27569bd..fcf18344 100644
--- a/meson.build
+++ b/meson.build
2021-04-27 07:46:08 +00:00
@@ -36,7 +36,10 @@ pipewire_libexecdir = prefix / get_option('libexecdir')
pipewire_localedir = prefix / get_option('localedir')
pipewire_sysconfdir = prefix / get_option('sysconfdir')
2021-04-27 07:46:08 +00:00
-pipewire_configdir = pipewire_sysconfdir / 'pipewire'
+pipewire_configdir = get_option('pipewire_config_dir')
+if pipewire_configdir == ''
2021-04-27 07:46:08 +00:00
+ pipewire_configdir = pipewire_sysconfdir / 'pipewire'
+endif
2021-04-27 07:46:08 +00:00
modules_install_dir = pipewire_libdir / pipewire_name
if host_machine.system() == 'linux'
diff --git a/meson_options.txt b/meson_options.txt
2021-04-27 07:46:08 +00:00
index 85beb86a..372e8faa 100644
--- a/meson_options.txt
+++ b/meson_options.txt
2021-04-27 07:46:08 +00:00
@@ -67,6 +67,9 @@ option('jack-devel',
option('libjack-path',
description: 'Where to install the libjack.so library',
type: 'string')
+option('pipewire_config_dir',
+ type : 'string',
+ description : 'Directory for pipewire configuration (defaults to /etc/pipewire)')
option('spa-plugins',
description: 'Enable spa plugins integration',
2021-04-27 07:46:08 +00:00
type: 'feature',