nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 869 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "tidb"; 9 version = "8.5.2"; 10 11 src = fetchFromGitHub { 12 owner = "pingcap"; 13 repo = "tidb"; 14 rev = "v${version}"; 15 sha256 = "sha256-6fXkNG+cQh4HCZj3ApmLUA+n5ViSVOyABoCwx0K8Ja4="; 16 }; 17 18 vendorHash = "sha256-TLNa4ykczRronsKITPwVFOls8ql7xWXJvOibqYulC/Q="; 19 20 ldflags = [ 21 "-X github.com/pingcap/tidb/pkg/parser/mysql.TiDBReleaseVersion=${version}" 22 "-X github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEdition=Community" 23 ]; 24 25 subPackages = [ "cmd/tidb-server" ]; 26 27 meta = with lib; { 28 description = "Open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics"; 29 homepage = "https://pingcap.com"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ Makuru ]; 32 mainProgram = "tidb-server"; 33 }; 34}