vimPlugins.ctrlp-cmatcher: python2 -> python3

This commit is contained in:
Thiago Kenji Okada 2022-12-02 09:50:12 +00:00
parent b72b8b94cf
commit 748088becd

View File

@ -310,7 +310,21 @@ self: super: {
});
ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs (old: {
buildInputs = [ python2 ];
# drop Python 2 patches
# https://github.com/JazzCore/ctrlp-cmatcher/pull/44
patches = [
(fetchpatch {
name = "drop_python2_pt1.patch";
url = "https://github.com/JazzCore/ctrlp-cmatcher/commit/3abad6ea155a7f6e138e1de3ac5428177bfb0254.patch";
sha256 = "sha256-fn2puqYeJdPTdlTT4JjwVz7b3A+Xcuj/xtP6TETlB1U=";
})
(fetchpatch {
name = "drop_python2_pt2.patch";
url = "https://github.com/JazzCore/ctrlp-cmatcher/commit/385c8d02398dbb328b1a943a94e7109fe6473a08.patch";
sha256 = "sha256-yXKCq8sqO0Db/sZREuSeqKwKO71cmTsAvWftoOQehZo=";
})
];
buildInputs = with python3.pkgs; [ python3 setuptools ];
buildPhase = ''
patchShebangs .
./install.sh