buildVimPlugin: deprecate addRtp

it has been doing nothing for a few years now. I doubt it's being used anywhere outside nixpkgs. Will remove it after release
This commit is contained in:
Matthieu C. 2024-08-20 12:44:31 +02:00
parent 06dfe20171
commit 37575b3022

View File

@ -4,12 +4,8 @@
, toVimPlugin
}:
rec {
addRtp = drv:
drv // {
rtp = lib.warn "`rtp` attribute is deprecated, use `outPath` instead." drv.outPath;
overrideAttrs = f: addRtp (drv.overrideAttrs f);
};
{
addRtp = drv: lib.warn "`addRtp` is deprecated, does nothing." drv;
buildVimPlugin =
{ name ? "${attrs.pname}-${attrs.version}"
@ -45,6 +41,6 @@ rec {
} // meta;
});
in
addRtp (toVimPlugin drv);
toVimPlugin drv;
}