-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Qyriad <qyriad@qyriad.me> Co-Authored-By: eldritch horrors <pennae@lix.systems>
- Loading branch information
1 parent
9523e26
commit 736c7f4
Showing
16 changed files
with
123 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
configure_file( | ||
input : 'completion.sh', | ||
output : 'nix', | ||
install : true, | ||
install_dir : get_option('datadir') / 'bash-completion' / 'completions', | ||
install_mode : 'rw-r--r--', | ||
copy : true, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
configure_file( | ||
input : 'completion.fish', | ||
output : 'nix.fish', | ||
install : true, | ||
install_dir : get_option('datadir') / 'fish' / 'vendor_completions.d', | ||
install_mode : 'rw-r--r--', | ||
copy : true, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
subdir('bash') | ||
subdir('fish') | ||
subdir('zsh') | ||
|
||
subdir('systemd') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
foreach config : [ 'nix-daemon.socket', 'nix-daemon.service' ] | ||
configure_file( | ||
input : config + '.in', | ||
output : config, | ||
install : true, | ||
install_dir : get_option('prefix') / 'lib/systemd/system', | ||
install_mode : 'rw-r--r--', | ||
configuration : { | ||
'storedir' : store_dir, | ||
'localstatedir' : state_dir, | ||
'bindir' : get_option('datadir'), | ||
}, | ||
) | ||
endforeach | ||
|
||
configure_file( | ||
input : 'nix-daemon.conf.in', | ||
output : 'nix-daemon.conf', | ||
install : true, | ||
install_dir : get_option('prefix') / 'lib/tmpfiles.d', | ||
install_mode : 'rw-r--r--', | ||
configuration : { | ||
'localstatedir' : state_dir, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
foreach script : [ [ 'completion.zsh', '_nix' ], [ 'run-help-nix' ] ] | ||
configure_file( | ||
input : script[0], | ||
output : script.get(1, script[0]), | ||
install : true, | ||
install_dir : get_option('datadir') / 'zsh/site-functions', | ||
install_mode : 'rw-r--r--', | ||
copy : true, | ||
) | ||
endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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', | ||
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, | ||
) | ||
|
||
foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ] | ||
configure_file( | ||
input : 'nix-profile' + rc + '.in', | ||
output : 'nix' + rc, | ||
install : true, | ||
install_dir : get_option('profile-dir'), | ||
install_mode : 'rw-r--r--', | ||
configuration : { | ||
'localstatedir': state_dir, | ||
}, | ||
) | ||
endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# vim: filetype=meson | ||
|
||
option('state-dir', type : 'string', value : '/nix/var', | ||
description : 'path to store state in for Nix', | ||
) | ||
|
||
# A relative path means it gets appended to prefix. | ||
option('profile-dir', type : 'string', value : 'etc/profile.d', | ||
description : 'the path to install shell profile files', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../misc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src |