mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
copy shell completion to nix output (#11518)
This commit is contained in:
parent
b90ec5c779
commit
e290479474
@ -126,6 +126,7 @@
|
|||||||
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
||||||
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
||||||
buildInputs = [stdenv.cc.cc.lib];
|
buildInputs = [stdenv.cc.cc.lib];
|
||||||
|
nativeBuildInputs = [pkgs.installShellFiles];
|
||||||
# disable tests
|
# disable tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
meta.mainProgram = "hx";
|
meta.mainProgram = "hx";
|
||||||
@ -141,6 +142,7 @@
|
|||||||
cp contrib/Helix.desktop $out/share/applications
|
cp contrib/Helix.desktop $out/share/applications
|
||||||
cp logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
|
cp logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
|
||||||
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
|
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
|
||||||
|
installShellCompletion contrib/completion/hx.{bash,fish,zsh}
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
|
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
|
||||||
|
Loading…
Reference in New Issue
Block a user