diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-09 02:03:24 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-04-09 02:25:58 -0600 |
commit | 4b99f43aeb34f4b27ed5d8090b8822bee3365f2b (patch) | |
tree | 529950823018e4ac5b5850f34919de4fa107c787 /meson.options | |
parent | 2a98fe28cb18b117e4eabc8a3e237bf2606d9a51 (diff) |
meson: correctly differentiate $profiledir and $sysconfdir/profile.d
The configured sysconfdir is used to look for nix.conf, so it needs
to be /etc, and not $out/etc, so we separate out the place where shell
profile files are installed, which is the only other place sysconfdir is
at all used.
See https://git.lix.systems/lix-project/lix/issues/231#issuecomment-1989
for more info.
Change-Id: Idbed8ba82e711b8a9d6b6127904befa27d58e279
Diffstat (limited to 'meson.options')
-rw-r--r-- | meson.options | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.options b/meson.options index 393d61c49..c71ec18ae 100644 --- a/meson.options +++ b/meson.options @@ -50,3 +50,8 @@ option('log-dir', type : 'string', value : '/nix/var/log', option('enable-docs', type : 'boolean', value : true, description : 'whether to build documentation', ) + +# 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', +) |