Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub, sqlite }:
2
3buildGoModule rec {
4 pname = "vitess";
5 version = "19.0.4";
6
7 src = fetchFromGitHub {
8 owner = "vitessio";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-rP2a/t+5FhGIj9T6CQodMp9YXYf3fL5oBdFpAn7e7hw=";
12 };
13
14 vendorHash = "sha256-BlHd5GQJwdntmvVti+Jvfw65LrYM+hjwdvQ0duKk5d8=";
15
16 buildInputs = [ sqlite ];
17
18 subPackages = [ "go/cmd/..." ];
19
20 # integration tests require access to syslog and root
21 doCheck = false;
22
23 meta = with lib; {
24 homepage = "https://vitess.io/";
25 changelog = "https://github.com/vitessio/vitess/releases/tag/v${version}";
26 description = "Database clustering system for horizontal scaling of MySQL";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ urandom ];
29 };
30}