nixpkgs/pkgs/development/libraries/pipewire/0055-pipewire-media-session-path.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2021-03-04 22:41:02 +00:00
diff --git a/meson_options.txt b/meson_options.txt
2021-04-27 07:46:08 +00:00
index 93b5e2a9..1b915ac3 100644
2021-03-04 22:41:02 +00:00
--- a/meson_options.txt
+++ b/meson_options.txt
2021-06-28 18:06:44 +00:00
@@ -200,3 +200,6 @@ option('media-session',
2021-03-14 23:38:20 +00:00
type: 'feature',
value: 'auto')
2021-03-04 22:41:02 +00:00
+option('media-session-prefix',
+ description: 'Install directory for pipewire-media-session and its support files',
+ type: 'string')
2021-06-28 18:06:44 +00:00
option('session-managers',
2021-03-04 22:41:02 +00:00
diff --git a/src/daemon/systemd/user/meson.build b/src/daemon/systemd/user/meson.build
2021-04-27 07:46:08 +00:00
index 1edebb2d..251270eb 100644
2021-03-04 22:41:02 +00:00
--- a/src/daemon/systemd/user/meson.build
+++ b/src/daemon/systemd/user/meson.build
@@ -10,7 +10,7 @@ install_data(
systemd_config = configuration_data()
2021-04-27 07:46:08 +00:00
systemd_config.set('PW_BINARY', pipewire_bindir / 'pipewire')
systemd_config.set('PW_PULSE_BINARY', get_option('pipewire_pulse_prefix') / 'bin/pipewire-pulse')
-systemd_config.set('PW_MEDIA_SESSION_BINARY', pipewire_bindir / 'pipewire-media-session')
+systemd_config.set('PW_MEDIA_SESSION_BINARY', get_option('media-session-prefix') / 'bin/pipewire-media-session')
2021-03-04 22:41:02 +00:00
configure_file(input : 'pipewire.service.in',
output : 'pipewire.service',