2023-01-11 07:51:40 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tidb";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "7.3.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pingcap";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-zpAduymFC17iL9eEssFoHxK+J4EP1QyamchfLetFN/k=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-GbAZK2TQKc3bziZm202Q2QLLK0TDJ/AplSGKBSLSoqQ=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/pingcap/tidb/dumpling/cli.ReleaseVersion=${version}"
|
|
|
|
"-X github.com/pingcap/tidb/util/versioninfo.TiDBEdition=Community"
|
|
|
|
];
|
|
|
|
|
|
|
|
subPackages = [ "tidb-server" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics";
|
|
|
|
homepage = "https://pingcap.com";
|
|
|
|
license = licenses.asl20;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = [];
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|