nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub, sqlite }:
2
3buildGoModule rec {
4 pname = "vitess";
5 version = "16.0.2";
6
7 src = fetchFromGitHub {
8 owner = "vitessio";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-8nFvNO+zb7Z0g2BMnlk+obDolCQrlfClOIg0mPW8gAU=";
12 };
13
14 vendorHash = "sha256-hC0skrEDXn6SXjH75ur77I0pHnGSURErAy97lmVvqro=";
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}