diff --git a/pkgs/applications/editors/vim/plugins/non-generated/statix/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/statix/default.nix new file mode 100644 index 000000000000..62dd5e9b9bc0 --- /dev/null +++ b/pkgs/applications/editors/vim/plugins/non-generated/statix/default.nix @@ -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 + ''; +} diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 55d387800e86..71b62430e031 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -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