Merge pull request #29871 from Ma27/vim-utils/override-capability

vim-plugins: add `overrideAttrs` support for `buildVimPluginFrom2Nix`
This commit is contained in:
Daiderd Jordan 2017-10-08 12:58:37 +02:00 committed by GitHub
commit 64a9483444

View File

@ -373,8 +373,10 @@ rec {
}
'';
addRtp = path: derivation:
derivation // { rtp = "${derivation}/${path}"; };
addRtp = path: attrs: derivation:
derivation // { rtp = "${derivation}/${path}"; } // {
overrideAttrs = f: buildVimPlugin (attrs // f attrs);
};
buildVimPlugin = a@{
name,
@ -389,7 +391,7 @@ rec {
addonInfo ? null,
...
}:
addRtp "${rtpPath}/${path}" (stdenv.mkDerivation (a // {
addRtp "${rtpPath}/${path}" a (stdenv.mkDerivation (a // {
name = namePrefix + name;
inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;