module(helix): Add typos-lsp to all languages' ls, and pass default lang settings via passthru in package
This commit is contained in:
parent
0bb321f2c5
commit
a3a4265b96
2 changed files with 130 additions and 93 deletions
|
|
@ -4,14 +4,27 @@
|
|||
callPackage,
|
||||
symlinkJoin,
|
||||
makeWrapper,
|
||||
lib,
|
||||
}: let
|
||||
inherit (inputs.helix.packages."${system}") helix;
|
||||
helixWithPassthru =
|
||||
helix
|
||||
// {
|
||||
passthru =
|
||||
helix.passthru
|
||||
// {
|
||||
languages = lib.pipe "${helix.src}/languages.toml" [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
];
|
||||
};
|
||||
};
|
||||
runtime = callPackage ./runtime.nix {};
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "helix-wrapped";
|
||||
paths = [helix];
|
||||
inherit (helix) meta;
|
||||
paths = [helixWithPassthru];
|
||||
inherit (helixWithPassthru) meta;
|
||||
buildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
|
@ -19,4 +32,9 @@ in
|
|||
wrapProgram $out/bin/hx \
|
||||
--set HELIX_RUNTIME ${runtime}
|
||||
'';
|
||||
passthru =
|
||||
helixWithPassthru.passthru
|
||||
// {
|
||||
helix-unwrapped = helixWithPassthru;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue