buildLuaPlugin: convert the addRtp call

since it was breaking overrideAttrs.
This commit is contained in:
Matthieu Coudron 2022-05-11 11:31:47 +02:00
parent 0dbca90d41
commit da8a322e73

View File

@ -20,7 +20,7 @@ rec {
addonInfo ? null,
...
}:
(stdenv.mkDerivation (attrs // {
let drv = stdenv.mkDerivation (attrs // {
name = namePrefix + name;
# dont move the doc folder since vim expects it
@ -40,7 +40,10 @@ rec {
runHook postInstall
'';
}));
});
in drv.overrideAttrs(oa: {
rtp = "${drv}";
});
buildVimPluginFrom2Nix = attrs: buildVimPlugin ({
# vim plugins may override this