nixpkgs/pkgs/servers/tidb/default.nix

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

33 lines
840 B
Nix
Raw Normal View History

2023-01-02 12:40:27 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tidb";
2023-11-16 02:29:12 +00:00
version = "7.4.0";
2023-01-02 12:40:27 +00:00
src = fetchFromGitHub {
owner = "pingcap";
repo = pname;
rev = "v${version}";
2023-11-16 02:29:12 +00:00
sha256 = "sha256-OsyQ7YZjErjfWg/1wf21AxBu2wrotey8hJSzoQQ0OSc=";
2023-01-02 12:40:27 +00:00
};
2023-11-16 02:29:12 +00:00
vendorHash = "sha256-jtuf3/CClz37TTQ2zs49yryccoaraAG4UrIOIlBYFqQ=";
2023-01-02 12:40:27 +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-05 00:29:57 +00:00
maintainers = [];
2023-11-23 21:09:35 +00:00
mainProgram = "tidb-server";
2023-01-02 12:40:27 +00:00
};
}