nixpkgs-suyu/pkgs/servers/tidb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
837 B
Nix
Raw Normal View History

2023-01-02 13:40:27 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tidb";
2023-02-22 22:29:26 +01:00
version = "6.6.0";
2023-01-02 13:40:27 +01:00
src = fetchFromGitHub {
owner = "pingcap";
repo = pname;
rev = "v${version}";
2023-02-22 22:29:26 +01:00
sha256 = "sha256-u0Zl2SULBWrUu3V7VbbbkSMPoRijWQRYCMcqD4nC3Bw=";
2023-01-02 13:40:27 +01:00
};
2023-02-22 22:29:26 +01:00
vendorHash = "sha256-0fvvCOvRM3NbcUln5UfR/jTxVKZuQudgm6GivKaYm2c=";
2023-01-02 13:40:27 +01: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;
maintainers = with maintainers; [ candyc1oud ];
};
}