feat(neovide): make a neovide test wrapper
This commit is contained in:
parent
607e6a486d
commit
ed5ab6c568
6 changed files with 57 additions and 25 deletions
|
@ -1,8 +1,19 @@
|
|||
{neovide, ...}:
|
||||
neovide.overrideAttrs (finalAttrs: {
|
||||
patches =
|
||||
(finalAttrs.patches or [])
|
||||
++ [
|
||||
./0001-feat-env-add-NEOVIDE_CONFIG-env-var.patch
|
||||
];
|
||||
})
|
||||
{symlinkJoin, makeWrapper, neovide, ...}:
|
||||
let
|
||||
custom-neovide = neovide.overrideAttrs (finalAttrs: {
|
||||
patches =
|
||||
(finalAttrs.patches or [])
|
||||
++ [
|
||||
./0001-feat-env-add-NEOVIDE_CONFIG-env-var.patch
|
||||
];
|
||||
});
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "neovide";
|
||||
paths = [custom-neovide];
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/neovide \
|
||||
--set-default NEOVIDE_CONFIG ${../../test_dirs/neovide/config.toml}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue