@@ -111,16 +111,20 @@ class Plugin:
111111 return copy
112112
113113
114−GET_PLUGINS = """(with import <localpkgs> {};
114+GET_PLUGINS = f"""(with import <localpkgs> {{}};
115115let
116+ inherit (vimUtils.override {{inherit vim;}}) buildVimPluginFrom2Nix;
117+ generated = callPackage {ROOT}/generated.nix {{
118+ inherit buildVimPluginFrom2Nix;
119+ }};
116120 hasChecksum = value: lib.isAttrs value && lib.hasAttrByPath ["src" "outputHash"] value;
117121 getChecksum = name: value:
118− if hasChecksum value then {
122+ if hasChecksum value then {{
119123 submodules = value.src.fetchSubmodules or false;
120124 sha256 = value.src.outputHash;
121125 rev = value.src.rev;
122− } else null;
123− checksums = lib.mapAttrs getChecksum vimPlugins;
126+ }} else null;
127+ checksums = lib.mapAttrs getChecksum generated;
124128in lib.filterAttrs (n: v: v != null) checksums)"""
125129
126130