From 748088becddc23e70042ea9055ba83a5d92cbbe9 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 2 Dec 2022 09:50:12 +0000 Subject: [PATCH] vimPlugins.ctrlp-cmatcher: python2 -> python3 --- .../editors/vim/plugins/overrides.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 3e0109aaef8a..9db737e419e3 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -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