mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
Merge pull request #278918 from running-grass/update-codeium
emacsPackages.codeium: refactor with melpaBuild
This commit is contained in:
commit
868769dc6c
@ -1,5 +1,6 @@
|
|||||||
{ trivialBuild, fetchFromGitHub, pkgs, lib, }:
|
{ fetchFromGitHub, melpaBuild, pkgs, lib, substituteAll, writeText }:
|
||||||
trivialBuild {
|
|
||||||
|
melpaBuild {
|
||||||
pname = "codeium";
|
pname = "codeium";
|
||||||
version = "1.6.13";
|
version = "1.6.13";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -8,14 +9,22 @@ trivialBuild {
|
|||||||
rev = "1.6.13";
|
rev = "1.6.13";
|
||||||
hash = "sha256-CjT21GhryO8/iM0Uzm/s/I32WqVo4M3tSlHC06iEDXA=";
|
hash = "sha256-CjT21GhryO8/iM0Uzm/s/I32WqVo4M3tSlHC06iEDXA=";
|
||||||
};
|
};
|
||||||
|
commit = "02f9382c925633a19dc928e99b868fd5f6947e58";
|
||||||
buildInputs = [ pkgs.codeium ];
|
buildInputs = [ pkgs.codeium ];
|
||||||
|
|
||||||
patches = [ ./codeium.el.patch ];
|
recipe = writeText "recipe" ''
|
||||||
postPatch = ''
|
(codeium
|
||||||
substituteInPlace codeium.el --subst-var-by codeium ${pkgs.codeium}/bin/codeium_language_server
|
:repo "Exafunction/codeium.el"
|
||||||
|
:fetcher github)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./codeium.el.patch;
|
||||||
|
codeium = "${pkgs.codeium}/bin/codeium_language_server";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user