helix: support cross compilation
This commit is contained in:
parent
4e7ffe3140
commit
5bbb3678ed
|
@ -11,12 +11,15 @@ let
|
|||
};
|
||||
in
|
||||
helix.overrideAttrs (upstream: {
|
||||
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
|
||||
rsync
|
||||
];
|
||||
configurePhase = (upstream.configurePhase or "") + ''
|
||||
cat ${languages} >> languages.toml
|
||||
substituteAllInPlace languages.toml
|
||||
|
||||
${rsync}/bin/rsync -arv ${tree-sitter-nix-shell.generated}/ runtime/grammars/sources/nix-shell/
|
||||
${rsync}/bin/rsync -arv ${tree-sitter-nix-shell}/queries/ runtime/queries/nix-shell/
|
||||
rsync -arv ${tree-sitter-nix-shell.generated}/ runtime/grammars/sources/nix-shell/
|
||||
rsync -arv ${tree-sitter-nix-shell}/queries/ runtime/queries/nix-shell/
|
||||
|
||||
# helix tries to delete the sources during installPhase
|
||||
chmod -R +w runtime/grammars/sources/nix-shell
|
||||
|
|
Loading…
Reference in New Issue