nixpkgs/pkgs/servers/tidb/default.nix

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

32 lines
807 B
Nix
Raw Normal View History

2023-01-02 12:40:27 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tidb";
2023-04-16 10:25:26 +00:00
version = "7.0.0";
2023-01-02 12:40:27 +00:00
src = fetchFromGitHub {
owner = "pingcap";
repo = pname;
rev = "v${version}";
2023-04-16 10:25:26 +00:00
sha256 = "sha256-giYAD6BJqK1Z9Rkpy3Xhf4Y4+lmZW6y1CJur0OqZHTU=";
2023-01-02 12:40:27 +00:00
};
2023-04-16 10:25:26 +00:00
vendorHash = "sha256-IyVfML4XwogW/SMoZoZcQA32DxuHzuBoNePqk3u1vSw=";
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-01-02 12:40:27 +00:00
};
}