From 6b06341b1465270d784bd68bdc82156b687b8930 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 29 Feb 2020 11:05:46 -0500 Subject: [PATCH] build: use define_variable for get_pkgconfig_variable On NixOS all packages are installed into their own immutable prefix. Because of this get_pkgconfig_variable will return a path from within systemd's prefix and we cannot write to it. By using define_variable we can replace the respective directory to be from the paths from meson. --- src/daemon/systemd/user/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/systemd/user/meson.build b/src/daemon/systemd/user/meson.build index a3970a824..270b9b9a3 100644 --- a/src/daemon/systemd/user/meson.build +++ b/src/daemon/systemd/user/meson.build @@ -1,4 +1,4 @@ -systemd_user_services_dir = systemd.get_pkgconfig_variable('systemduserunitdir') +systemd_user_services_dir = systemd.get_pkgconfig_variable('systemduserunitdir', define_variable : [ 'prefix', prefix]) install_data(sources : 'pipewire.socket', install_dir : systemd_user_services_dir)