aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 88d00fe..02dfde3 100644
--- a/default.nix
+++ b/default.nix
@@ -8,10 +8,14 @@ let
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
anissue = (super.callCabal2nix "anissue" ./. { }).overrideAttrs (oldAttrs: {
+ nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = ''
exe=${oldAttrs.pname}
- mkdir -p $out/share/bash-completion/completions
- $out/bin/$exe --bash-completion-script $exe >$out/share/bash-completion/completions/$exe
+
+ installShellCompletion --cmd $exe \
+ --bash <($out/bin/$exe --bash-completion-script $exe) \
+ --fish <($out/bin/$exe --fish-completion-script $exe) \
+ --zsh <($out/bin/$exe --zsh-completion-script $exe)
'';
});
};