diff options
author | Calvin Beck <hobbes@ualberta.ca> | 2022-02-19 23:17:29 -0500 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-02-20 20:17:26 +0100 |
commit | dae6f96a4178bfe3d4bd8782d553ac9e487abc3c (patch) | |
tree | cc5d89d3284681f5a5e730ab6b6005fabf8d3cd3 /pkgs/development/haskell-modules | |
parent | 9109084905b0ebad886fe295808afde25a073775 (diff) | |
download | nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar.gz nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar.bz2 nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar.lz nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar.xz nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.tar.zst nixlib-dae6f96a4178bfe3d4bd8782d553ac9e487abc3c.zip |
haskellPackages.git-annex: Add shellPath for the git-annex-shell.
Git annex provides a login shell for restricted access: https://git-annex.branchable.com/git-annex-shell/ This was not exposed with `passthru.shellPath` before, so you could not set a user's shell to `haskellPackages.git-annex` declaratively before this change.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 4cf5867c6571..b95f53758fd0 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -92,6 +92,12 @@ self: super: { rm -r $out/doc/?ndroid* ''; }; + + # Git annex provides a restricted login shell. Setting + # passthru.shellPath here allows a user's login shell to be set to + # `git-annex-shell` by making `shell = haskellPackages.git-annex`. + # https://git-annex.branchable.com/git-annex-shell/ + passthru.shellPath = "/bin/git-annex-shell"; }) super.git-annex; # Fix test trying to access /home directory |