vimPlugisn.statix: add simple check and note for version

This commit is contained in:
figsoda 2021-10-29 10:02:36 -04:00
parent cf5da07395
commit 19fec7306e
2 changed files with 7 additions and 1 deletions

View file

@ -528,11 +528,15 @@ self: super: {
'';
});
statix = buildVimPluginFrom2Nix {
statix = buildVimPluginFrom2Nix rec {
inherit (statix) pname src meta;
version = "0.1.0";
dependencies = with self; [ statix ];
postPatch = ''
# check that version is up to date
grep 'pname = "statix-vim"' -A 1 flake.nix \
| grep -F 'version = "${version}"' flake.nix
cd vim-plugin
substituteInPlace ftplugin/nix.vim --replace statix ${statix}/bin/statix
substituteInPlace plugin/statix.vim --replace statix ${statix}/bin/statix

View file

@ -2,6 +2,8 @@
rustPlatform.buildRustPackage rec {
pname = "statix";
# also update version of the vim plugin in pkgs/misc/vim-plugins/overrides.nix
# the version can be found in flake.nix of the source code
version = "0.3.1";
src = fetchFromGitHub {