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,
|
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}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
''
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue