forked from mirrors/nixpkgs
vim-plugins: add overrideAttrs
support for buildVimPluginFrom2Nix
This commit is contained in:
parent
d67137dd55
commit
acf0ee69ba
|
@ -373,8 +373,10 @@ rec {
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
addRtp = path: derivation:
|
addRtp = path: attrs: derivation:
|
||||||
derivation // { rtp = "${derivation}/${path}"; };
|
derivation // { rtp = "${derivation}/${path}"; } // {
|
||||||
|
overrideAttrs = f: buildVimPlugin (attrs // f attrs);
|
||||||
|
};
|
||||||
|
|
||||||
buildVimPlugin = a@{
|
buildVimPlugin = a@{
|
||||||
name,
|
name,
|
||||||
|
@ -389,7 +391,7 @@ rec {
|
||||||
addonInfo ? null,
|
addonInfo ? null,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
addRtp "${rtpPath}/${path}" (stdenv.mkDerivation (a // {
|
addRtp "${rtpPath}/${path}" a (stdenv.mkDerivation (a // {
|
||||||
name = namePrefix + name;
|
name = namePrefix + name;
|
||||||
|
|
||||||
inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;
|
inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;
|
||||||
|
|
Loading…
Reference in a new issue