os/pkgs/cockroach.nix

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

25 lines
704 B
Nix
Raw Normal View History

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
'';
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"];
maintainers = [ lib.maintainers.mic92 ];
2023-04-07 14:00:19 +00:00
};
}