nixpkgs/pkgs/applications/window-managers/sway/swayosd_systemd_paths.patch
2023-07-23 18:47:54 +02:00

25 lines
697 B
Diff

diff --git a/data/meson.build b/data/meson.build
index fc687a5..68decdf 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,5 +1,6 @@
datadir = get_option('datadir')
sysconfdir = get_option('sysconfdir')
+libdir = get_option('libdir')
# LICENSE
install_data(
@@ -41,11 +42,7 @@ configure_file(
# Systemd service unit
systemd = dependency('systemd', required: false)
-if systemd.found()
- systemd_service_install_dir = systemd.get_variable(pkgconfig :'systemdsystemunitdir')
-else
- systemd_service_install_dir = join_paths(libdir, 'systemd', 'system')
-endif
+systemd_service_install_dir = join_paths(libdir, 'systemd', 'system')
configure_file(
configuration: conf_data,