mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
e913ae3400
TiDB: 7.4.0 -> 8.1.0
31 lines
835 B
Nix
31 lines
835 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tidb";
|
|
version = "8.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pingcap";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-i8soETbTWmFZQqKYcRoLXVIgFCQxHDvXZbJNjDmS8Jo=";
|
|
};
|
|
|
|
vendorHash = "sha256-RNYL5tb6d8NhNiOm3x8sgo1SEc8+uMdWgYor/VL3C6s=";
|
|
|
|
ldflags = [
|
|
"-X github.com/pingcap/tidb/pkg/parser/mysql.TiDBReleaseVersion=${version}"
|
|
"-X github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEdition=Community"
|
|
];
|
|
|
|
subPackages = [ "cmd/tidb-server" ];
|
|
|
|
meta = with lib; {
|
|
description = "Open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics";
|
|
homepage = "https://pingcap.com";
|
|
license = licenses.asl20;
|
|
maintainers = [];
|
|
mainProgram = "tidb-server";
|
|
};
|
|
}
|