meson: install systemd files

Change-Id: Idacf602fd379c82a051f00df2293cb02c8b286d4
This commit is contained in:
eldritch horrors 2024-03-29 18:06:27 +01:00
parent 2148b23999
commit 34a49fad2c
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,5 @@
subdir('bash') subdir('bash')
subdir('fish') subdir('fish')
subdir('zsh') subdir('zsh')
subdir('systemd')

25
misc/systemd/meson.build Normal file
View file

@ -0,0 +1,25 @@
foreach config : [ 'nix-daemon.socket', 'nix-daemon.service' ]
configure_file(
input : config + '.in',
output : config,
install : true,
install_dir : prefix / 'lib/systemd/system',
install_mode : 'rw-r--r--',
configuration : {
'storedir' : store_dir,
'localstatedir' : state_dir,
'bindir' : bindir,
},
)
endforeach
configure_file(
input : 'nix-daemon.conf.in',
output : 'nix-daemon.conf',
install : true,
install_dir : prefix / 'lib/tmpfiles.d',
install_mode : 'rw-r--r--',
configuration : {
'localstatedir' : state_dir,
},
)