vimPlugins.statix: move to non-generated

Looks like it was missed in `overrides.nix` when it should be in
non-generated.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman
2025-08-30 17:13:12 -05:00
parent 4c8aa4257a
commit e90c4fcba7
2 changed files with 17 additions and 15 deletions
@@ -0,0 +1,17 @@
{
vimUtils,
statix,
}:
vimUtils.buildVimPlugin rec {
inherit (statix) pname src meta;
version = "0.1.0";
postPatch = ''
# check that version is up to date
grep 'pname = "statix-vim"' -A 1 flake.nix \
| grep -F 'version = "${version}"'
cd vim-plugin
substituteInPlace ftplugin/nix.vim --replace-fail statix ${statix}/bin/statix
substituteInPlace plugin/statix.vim --replace-fail statix ${statix}/bin/statix
'';
}
@@ -44,7 +44,6 @@
ripgrep,
sqlite,
sshfs,
statix,
stylish-haskell,
tabnine,
taskwarrior2,
@@ -3260,20 +3259,6 @@ in
dependencies = [ self.plenary-nvim ];
};
statix = buildVimPlugin rec {
inherit (statix) pname src meta;
version = "0.1.0";
postPatch = ''
# check that version is up to date
grep 'pname = "statix-vim"' -A 1 flake.nix \
| grep -F 'version = "${version}"'
cd vim-plugin
substituteInPlace ftplugin/nix.vim --replace-fail statix ${statix}/bin/statix
substituteInPlace plugin/statix.vim --replace-fail statix ${statix}/bin/statix
'';
};
stylish-nvim = super.stylish-nvim.overrideAttrs {
postPatch = ''
substituteInPlace lua/stylish/common/mouse_hover_handler.lua --replace-fail xdotool ${xdotool}/bin/xdotool