aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/meson.build15
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