From c98dc89219bdd965b6fd3aeb31fd33335add2e3b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 10 Dec 2024 19:10:29 +0100 Subject: Revert "remove tabnine and all related configuration" This reverts commit 1065e1ba0fce3f7295ad6017b063f6324490aacd. --- overlays/extra-packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 overlays/extra-packages.nix (limited to 'overlays/extra-packages.nix') diff --git a/overlays/extra-packages.nix b/overlays/extra-packages.nix new file mode 100644 index 00000000..6c64c24b --- /dev/null +++ b/overlays/extra-packages.nix @@ -0,0 +1,16 @@ +self: super: { + vimPlugins = super.vimPlugins.extend (final: prev: { + coc-tabnine = + let + inherit (super) tabnine; + in + prev.coc-tabnine.overrideAttrs { + buildInputs = [ tabnine ]; + + postFixup = '' + mkdir -p $target/binaries/${tabnine.version} + ln -s ${tabnine}/bin/ $target/binaries/${tabnine.version}/${tabnine.passthru.platform} + ''; + }; + }); +} -- cgit 1.4.1