all repos — nixfiles @ db728f16997c045162041920e359666dc413ea00

System and user configuration, managed by nix and home-manager

emacs: replace company-tabnine with tabnine-capf

Alan Pearce
commit

db728f16997c045162041920e359666dc413ea00

parent

215ad38f56fd49904c20af0d38233fc61d4d51ba

1 file changed, 47 insertions(+), 0 deletions(-)

changed files
A user/packages/tabnine-capf.nix
@@ -0,0 +1,47 @@
+{ eself +, fetchFromGitHub +, emacs +, gcc +, lib +, writeText +, unstableGitUpdater +, ... +}: +let + rev = "a55cefee20ea94747b12068a1d4b64b0decf37eb"; +in +eself.trivialBuild { + ename = "tabnine-capf"; + pname = "tabnine-capf"; + version = "0.0.1+unstable=2023-04-23"; + + src = fetchFromGitHub { + owner = "50ways2sayhard"; + repo = "tabnine-capf"; + inherit rev; + sha256 = "14n5xklm9cpkn04crvx7mlykk48w2j2w5vcf6ipfj84dhpiyzh0j"; + }; + + packageRequires = with eself; [ dash s ]; + + buildInputs = [ emacs gcc ]; + + buildPhase = '' + runHook preBuild + emacs -L . --batch --funcall batch-byte-compile *.el + runHook postBuild + ''; + + recipe = writeText "recipe" '' + (tabnine-capf :repo "50ways2sayhard/tabnine-capf" :fetcher github) + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = with lib; { + description = "A capf version of company-tabnine"; + homepage = "https://github.com/50ways2sayhard/tabnine-capf"; + license = licenses.mit; + inherit (emacs.meta) platforms; + }; +}