From d6adb0f0c5e0788f755f4161ca258ffcecc66c0d Mon Sep 17 00:00:00 2001 From: Anillc Date: Fri, 13 Jan 2023 03:38:12 +0800 Subject: [PATCH] go-cqhttp: init at 1.0.0-rc4 --- pkgs/servers/go-cqhttp/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/servers/go-cqhttp/default.nix diff --git a/pkgs/servers/go-cqhttp/default.nix b/pkgs/servers/go-cqhttp/default.nix new file mode 100644 index 000000000000..c6ab0a6addc9 --- /dev/null +++ b/pkgs/servers/go-cqhttp/default.nix @@ -0,0 +1,25 @@ +{ buildGoModule +, fetchFromGitHub +, lib +}: + +buildGoModule rec { + pname = "go-cqhttp"; + version = "1.0.0-rc4"; + + src = fetchFromGitHub { + owner = "Mrs4s"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-7TWKd0y8yBi2piKBCUZFeo3swtC/SteRtXXRv7Ojajs="; + }; + + vendorSha256 = "sha256-Oz/4bazhNnkf26YJ4H7c7d7vNzIJxG2OG0BJOiHBY7Y="; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 48097badba56..604c1374b5ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24057,6 +24057,8 @@ with pkgs; go-camo = callPackage ../servers/http/go-camo { }; + go-cqhttp = callPackage ../servers/go-cqhttp { }; + gofish = callPackage ../servers/gopher/gofish { }; grafana = callPackage ../servers/monitoring/grafana { };