1{ lib, buildGoModule, fetchFromGitHub, sqlite }:
2
3buildGoModule rec {
4 pname = "vitess";
5 version = "17.0.3";
6
7 src = fetchFromGitHub {
8 owner = "vitessio";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-/nj//8mCP6ytsdJAj/rJ0/vDEyyvOyUWNaLELBe/yts=";
12 };
13
14 vendorHash = "sha256-0OrPbMG7ElOD+9/kWx1HtvGUBiFpIsNs5Vu7QofzE6Q=";
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 = "A database clustering system for horizontal scaling of MySQL";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ urandom ];
29 };
30}