fix helix donnot have fish completions

This commit is contained in:
ulic-youthlic 2025-01-17 18:01:19 +08:00
parent b8818a8c8b
commit ee5fa789d8
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -4,15 +4,9 @@
inputs, inputs,
... ...
}: }:
pkgs.runCommand "helix-wrapped" let
{ helix = inputs.helix.packages."${pkgs.system}".default;
buildInputs = [ pkgs.makeWrapper ]; runtimeInputs = (
}
''
mkdir -p $out/bin
makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \
--suffix PATH : ${
lib.makeBinPath (
with pkgs; with pkgs;
[ [
rustfmt rustfmt
@ -38,6 +32,17 @@ pkgs.runCommand "helix-wrapped"
rust-analyzer rust-analyzer
nil nil
] ]
) );
in
pkgs.symlinkJoin {
name = "helix-wrapped";
paths = [ helix ];
inherit (helix) meta;
buildInputs = [
pkgs.makeWrapper
];
postBuild = ''
wrapProgram $out/bin/hx \
--suffix PATH : ${lib.makeBinPath runtimeInputs}
'';
} }
''