Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / tidb / default.nix
blobc5da10baaa3ce1ee1a6f05abbced0d88f993216b
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "tidb";
5   version = "8.1.0";
7   src = fetchFromGitHub {
8     owner = "pingcap";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-i8soETbTWmFZQqKYcRoLXVIgFCQxHDvXZbJNjDmS8Jo=";
12   };
14   vendorHash = "sha256-RNYL5tb6d8NhNiOm3x8sgo1SEc8+uMdWgYor/VL3C6s=";
16   ldflags = [
17     "-X github.com/pingcap/tidb/pkg/parser/mysql.TiDBReleaseVersion=${version}"
18     "-X github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEdition=Community"
19   ];
21   subPackages = [ "cmd/tidb-server" ];
23   meta = with lib; {
24     description = "Open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics";
25     homepage = "https://pingcap.com";
26     license = licenses.asl20;
27     maintainers = with maintainers; [ Makuru ];
28     mainProgram = "tidb-server";
29   };