Merge pull request #329237 from atorres1985-contrib/emacspackages-codeium

emacsPackages.codeium: rework
This commit is contained in:
Lin Jian 2024-07-28 16:52:34 +08:00 committed by GitHub
commit 794f0392cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View File

@ -17,7 +17,9 @@ in
cask = callPackage ./manual-packages/cask { };
codeium = callPackage ./manual-packages/codeium { };
codeium = callPackage ./manual-packages/codeium {
inherit (pkgs) codeium;
};
consult-gh = callPackage ./manual-packages/consult-gh { };

View File

@ -1,9 +1,10 @@
{
lib,
codeium,
fetchFromGitHub,
melpaBuild,
pkgs,
lib,
substituteAll,
gitUpdater,
}:
melpaBuild {
@ -19,17 +20,19 @@ melpaBuild {
patches = [
(substituteAll {
src = ./codeium.el.patch;
codeium = "${pkgs.codeium}/bin/codeium_language_server";
src = ./0000-set-codeium-command-executable.patch;
codeium = lib.getExe' codeium "codeium_language_server";
})
];
passthru.updateScript = gitUpdater { };
meta = {
description = "Free, ultrafast Copilot alternative for Emacs";
homepage = "https://github.com/Exafunction/codeium.el";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.running-grass ];
platforms = pkgs.codeium.meta.platforms;
inherit (codeium.meta) platforms;
sourceProvenance = [ lib.sourceTypes.fromSource ];
};