summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/go/go-cqhttp/package.nix
blob: 3b32086e570bec95d39ff7e57ac526400f77b3e5 (plain)
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
{
  buildGoModule,
  fetchFromGitHub,
  lib,
}:

buildGoModule (finalAttrs: {
  pname = "go-cqhttp";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "Mrs4s";
    repo = "go-cqhttp";
    rev = "v${finalAttrs.version}";
    hash = "sha256-mKenmsGdVg60zjVMTfbEtqtPcJdJo60Nz6IUQ9RB7j0=";
  };

  vendorHash = "sha256-YNARh25xrcPGvhhXzYmg3CsWwzvXq44uWt0S1PjRVdM=";

  meta = {
    description = "Golang implementation of OneBot based on Mirai and MiraiGo";
    homepage = "https://github.com/Mrs4s/go-cqhttp";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ Anillc ];
  };
})