about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/go-cqhttp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/go-cqhttp/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/go-cqhttp/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/go-cqhttp/default.nix b/nixpkgs/pkgs/servers/go-cqhttp/default.nix
new file mode 100644
index 000000000000..9cdcef2be7c4
--- /dev/null
+++ b/nixpkgs/pkgs/servers/go-cqhttp/default.nix
@@ -0,0 +1,25 @@
+{ buildGoModule
+, fetchFromGitHub
+, lib
+}:
+
+buildGoModule rec {
+  pname = "go-cqhttp";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "Mrs4s";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-mKenmsGdVg60zjVMTfbEtqtPcJdJo60Nz6IUQ9RB7j0=";
+  };
+
+  vendorHash = "sha256-YNARh25xrcPGvhhXzYmg3CsWwzvXq44uWt0S1PjRVdM=";
+
+  meta = with lib; {
+    description = "The Golang implementation of OneBot based on Mirai and MiraiGo";
+    homepage = "https://github.com/Mrs4s/go-cqhttp";
+    license = licenses.agpl3Only;
+    maintainers = with maintainers; [ Anillc ];
+  };
+}