diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-29 17:24:16 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-29 20:10:33 +0000 |
commit | e28dc26084f5dc65de564a6e4dddf13a239444fd (patch) | |
tree | fae83dc7ad9e71d993988f311215698270d2c0f4 /scripts | |
parent | 1da1f501fcf9384e9cc15405b041f3dd9bb2a51a (diff) |
meson: install shell files
Change-Id: I7c30690e5763d095cf7444333f7b687509051c5f
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/meson.build b/scripts/meson.build index 4fe584850..5bfda71cf 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -1,3 +1,5 @@ +# 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. configure_file( input : 'nix-profile.sh.in', output : 'nix-profile.sh', @@ -12,3 +14,16 @@ configure_file( output : 'nix-profile.sh.in', copy : true, ) + +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 |