Merge pull request #327952 from linj-fork/pr/clean-copilot

emacsPackages.copilot: trivialBuild -> melpaBuild
This commit is contained in:
Lin Jian 2024-07-18 07:00:53 +08:00 committed by GitHub
commit 8b6b30c1b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,33 +1,37 @@
{
lib,
dash,
editorconfig,
fetchFromGitHub,
nodejs,
s,
trivialBuild,
melpaBuild,
}:
trivialBuild {
melpaBuild {
pname = "copilot";
version = "0-unstable-2023-12-26";
src = fetchFromGitHub {
owner = "zerolfx";
repo = "copilot.el";
rev = "d4fa14cea818e041b4a536c5052cf6d28c7223d7";
sha256 = "sha256-Tzs0Dawqa+OD0RSsf66ORbH6MdBp7BMXX7z+5UuNwq4=";
};
files = ''(:defaults "dist")'';
packageRequires = [
dash
editorconfig
nodejs
s
];
postInstall = ''
cp -r $src/dist $LISPDIR
'';
propagatedUserEnvPkgs = [ nodejs ];
meta = {
description = "Unofficial copilot plugin for Emacs";
homepage = "https://github.com/zerolfx/copilot.el";
license = lib.licenses.mit;
platforms = [
"x86_64-darwin"
"x86_64-linux"