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,
...
}:
pkgs.runCommand "helix-wrapped"
{
buildInputs = [ pkgs.makeWrapper ];
}
''
mkdir -p $out/bin
makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \
--suffix PATH : ${
lib.makeBinPath (
let
helix = inputs.helix.packages."${pkgs.system}".default;
runtimeInputs = (
with pkgs;
[
rustfmt
@ -38,6 +32,17 @@ pkgs.runCommand "helix-wrapped"
rust-analyzer
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}
'';
}
''