2024-03-29 16:24:16 +00:00
|
|
|
# configures `scripts/nix-profile.sh.in` (and copies the original to the build directory).
|
|
|
|
# this is only needed for tests, but running it unconditionally does not hurt enough to care.
|
2024-03-25 18:12:56 +00:00
|
|
|
configure_file(
|
|
|
|
input : 'nix-profile.sh.in',
|
|
|
|
output : 'nix-profile.sh',
|
|
|
|
configuration : {
|
|
|
|
'localstatedir': state_dir,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
# https://github.com/mesonbuild/meson/issues/860
|
|
|
|
configure_file(
|
|
|
|
input : 'nix-profile.sh.in',
|
|
|
|
output : 'nix-profile.sh.in',
|
|
|
|
copy : true,
|
|
|
|
)
|
2024-03-29 16:24:16 +00:00
|
|
|
|
|
|
|
foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ]
|
|
|
|
configure_file(
|
|
|
|
input : 'nix-profile' + rc + '.in',
|
|
|
|
output : 'nix' + rc,
|
|
|
|
install : true,
|
|
|
|
install_dir : sysconfdir / 'profile.d',
|
|
|
|
install_mode : 'rw-r--r--',
|
|
|
|
configuration : {
|
|
|
|
'localstatedir': state_dir,
|
|
|
|
},
|
|
|
|
)
|
|
|
|
endforeach
|