summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-01-02 13:44:15 -0300
committerGitHub <noreply@github.com>2023-01-02 13:44:15 -0300
commit037d4463a063ccdf4f257a7ee263033b0ba1820d (patch)
treecd9645aa5407b442239932ae47a64b7293e5303d /pkgs/servers
parentd7637635d96b5be0ff63a83bded0a236a72ea2b3 (diff)
parent93aa5b07fcbe0e6c4d2ce1ff41471ca4479cb469 (diff)
downloadnixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar.gz
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar.bz2
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar.lz
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar.xz
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.tar.zst
nixpkgs-037d4463a063ccdf4f257a7ee263033b0ba1820d.zip
Merge pull request #208230 from candyc1oud/tidb
tidb: init at 6.5.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/tidb/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/servers/tidb/default.nix b/pkgs/servers/tidb/default.nix
new file mode 100644
index 00000000000..e9fabdfbd68
--- /dev/null
+++ b/pkgs/servers/tidb/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "tidb";
+  version = "6.5.0";
+
+  src = fetchFromGitHub {
+    owner = "pingcap";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-U3RGQADiS3mNq+4U+Qn+LMYbX8vxkTmofnRc+yrAcIA=";
+  };
+
+  vendorSha256 = "sha256-ljPFNjnmPaUx1PHtjlJh9ubKBDS3PgvbqTce9pi3GSc=";
+
+  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;
+    maintainers = with maintainers; [ candyc1oud ];
+  };
+}