fix helix donnot have fish completions
This commit is contained in:
parent
b8818a8c8b
commit
ee5fa789d8
1 changed files with 42 additions and 37 deletions
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue