tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
helix: install completion
zowoq
3 years ago
2905eb53
268569b6
+3
-2
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
helix
default.nix
+3
-2
pkgs/applications/editors/helix/default.nix
···
1
1
-
{ fetchzip, lib, rustPlatform, makeWrapper }:
1
1
+
{ fetchzip, lib, rustPlatform, installShellFiles, makeWrapper }:
2
2
3
3
rustPlatform.buildRustPackage rec {
4
4
pname = "helix";
···
14
14
15
15
cargoSha256 = "sha256-idItRkymr+cxk3zv2mPBR/frCGvzEUdSAhY7gghfR3M=";
16
16
17
17
-
nativeBuildInputs = [ makeWrapper ];
17
17
+
nativeBuildInputs = [ installShellFiles makeWrapper ];
18
18
19
19
postInstall = ''
20
20
# not needed at runtime
···
22
22
23
23
mkdir -p $out/lib
24
24
cp -r runtime $out/lib
25
25
+
installShellCompletion contrib/completion/hx.{bash,fish,zsh}
25
26
'';
26
27
postFixup = ''
27
28
wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime