2023-04-07 14:00:19 +00:00
|
|
|
self:
|
|
|
|
with self;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cockroachdb";
|
|
|
|
version = "22.2.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://binaries.cockroachdb.com/cockroach-v${version}.linux-amd64.tgz";
|
|
|
|
sha256 = "sha256-do426BaZdPqXcc/aQnRAgVTBCJ/OiNbSuCpwVTM2m0I=";
|
|
|
|
};
|
|
|
|
buildInputs = [ stdenv.cc.cc ];
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m755 cockroach $out/bin/cockroach
|
|
|
|
cp -r lib $out/lib
|
|
|
|
'';
|
2024-06-13 00:14:25 +00:00
|
|
|
meta = {
|
2023-04-07 14:00:19 +00:00
|
|
|
homepage = "https://www.cockroachlabs.com";
|
|
|
|
description = "A scalable, survivable, strongly-consistent SQL database";
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-06-13 00:14:25 +00:00
|
|
|
maintainers = [ lib.maintainers.mic92 ];
|
2023-04-07 14:00:19 +00:00
|
|
|
};
|
|
|
|
}
|