depot/third_party/nixpkgs/pkgs/servers/tidb/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
861 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 = with maintainers; [ Makuru ];
mainProgram = "tidb-server";
};
}