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.
This commit is contained in:
worldofpeace 2020-02-29 11:05:46 -05:00 committed by Wim Taymans
parent 73da0f8878
commit 6b06341b14

View file

@ -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)