summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/manual-packages/consult-gh/default.nix
blob: 64addcf38893e0feaea2f16fc012b216addc3cd7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, melpaBuild
, fetchFromGitHub
, consult
, embark
, forge
, gh
, markdown-mode
, writeText
, unstableGitUpdater
}:

let
  commit = "1fe876d9552b6ec6af257a4299a34eca99b40539";
in
melpaBuild {
  pname = "consult-gh";
  version = "20230706.438";

  inherit commit;

  src = fetchFromGitHub {
    owner = "armindarvish";
    repo = "consult-gh";
    rev = commit;
    hash = "sha256-bi+qlNvNMXbS4cXbXt01txwD2NAyAqJGNKeOtdtj7tg=";
  };

  packageRequires = [
    consult
    embark
    forge
    gh
    markdown-mode
  ];

  recipe = writeText "recipe" ''
    (consult-gh
      :repo "armindarvish/consult-gh"
      :fetcher github
      :files ("consult-gh-embark.el" "consult-gh-forge.el" "consult-gh.el"))
  '';

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    homepage = "https://github.com/armindarvish/consult-gh";
    description = "A GitHub CLI client inside GNU Emacs using Consult";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ AndersonTorres ];
  };
}