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 { }; 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 { }; consult-gh = callPackage ./manual-packages/consult-gh { };

View File

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