Unverified Commit 8b6b30c1 authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

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

emacsPackages.copilot: trivialBuild -> melpaBuild
parents da42302a f5380ca5
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
{
  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"