about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2022-09-05 20:11:51 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-09-05 23:36:00 +1000
commit2905eb5343e5d86fa281c58b1344e2195fd583cb (patch)
treeef8168fd7e55100f90fe01feaf411afdf59d3570 /pkgs/applications/editors
parent268569b6d898ef5955b9272d6c69c6f507d51cad (diff)
downloadnixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar.gz
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar.bz2
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar.lz
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar.xz
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.tar.zst
nixlib-2905eb5343e5d86fa281c58b1344e2195fd583cb.zip
helix: install completion
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/helix/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix
index cc62190aeb1b..d3d0c7c2f939 100644
--- a/pkgs/applications/editors/helix/default.nix
+++ b/pkgs/applications/editors/helix/default.nix
@@ -1,4 +1,4 @@
-{ fetchzip, lib, rustPlatform, makeWrapper }:
+{ fetchzip, lib, rustPlatform, installShellFiles, makeWrapper }:
 
 rustPlatform.buildRustPackage rec {
   pname = "helix";
@@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-idItRkymr+cxk3zv2mPBR/frCGvzEUdSAhY7gghfR3M=";
 
-  nativeBuildInputs = [ makeWrapper ];
+  nativeBuildInputs = [ installShellFiles makeWrapper ];
 
   postInstall = ''
     # not needed at runtime
@@ -22,6 +22,7 @@ rustPlatform.buildRustPackage rec {
 
     mkdir -p $out/lib
     cp -r runtime $out/lib
+    installShellCompletion contrib/completion/hx.{bash,fish,zsh}
   '';
   postFixup = ''
     wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime