Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / servers / tidb / default.nix
blob605ebdf3a71167acb585a33f0759d03bd51b3f7f
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "tidb";
5   version = "7.4.0";
7   src = fetchFromGitHub {
8     owner = "pingcap";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-OsyQ7YZjErjfWg/1wf21AxBu2wrotey8hJSzoQQ0OSc=";
12   };
14   vendorHash = "sha256-jtuf3/CClz37TTQ2zs49yryccoaraAG4UrIOIlBYFqQ=";
16   ldflags = [
17     "-s"
18     "-w"
19     "-X github.com/pingcap/tidb/dumpling/cli.ReleaseVersion=${version}"
20     "-X github.com/pingcap/tidb/util/versioninfo.TiDBEdition=Community"
21   ];
23   subPackages = [ "tidb-server" ];
25   meta = with lib; {
26     description = "An open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics";
27     homepage = "https://pingcap.com";
28     license = licenses.asl20;
29     maintainers = [];
30   };