about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/manual-packages/copilot/default.nix
blob: efe18de7600e1a3042caf74142252538298ab2f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  dash,
  editorconfig,
  fetchFromGitHub,
  nodejs,
  s,
  trivialBuild,
}:
trivialBuild {
  pname = "copilot";
  version = "unstable-2023-12-26";
  src = fetchFromGitHub {
    owner = "zerolfx";
    repo = "copilot.el";
    rev = "d4fa14cea818e041b4a536c5052cf6d28c7223d7";
    sha256 = "sha256-Tzs0Dawqa+OD0RSsf66ORbH6MdBp7BMXX7z+5UuNwq4=";
  };
  packageRequires = [
    dash
    editorconfig
    nodejs
    s
  ];
  postInstall = ''
    cp -r $src/dist $LISPDIR
  '';

  meta = {
    description = "An unofficial copilot plugin for Emacs";
    homepage = "https://github.com/zerolfx/copilot.el";
    platforms = [
      "x86_64-darwin"
      "x86_64-linux"
      "x86_64-windows"
    ];
  };
}