nixpkgs/pkgs/servers/tidb/default.nix
2023-06-02 15:44:14 +00:00

32 lines
807 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tidb";
version = "7.1.0";
src = fetchFromGitHub {
owner = "pingcap";
repo = pname;
rev = "v${version}";
sha256 = "sha256-KiF76SD2YbZ4GFXiuCLODIb1guOTYJ7MHCFTVQKytyY=";
};
vendorHash = "sha256-yfsOIQGqHk6kX2usQwkSHGcaOkJnF8ZFfM58Owpjvec=";
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 = [];
};
}