teutat3s: add cockroach-bin

This commit is contained in:
teutat3s 2023-04-07 16:00:19 +02:00
parent bc519e213d
commit 8939568d7c
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 26 additions and 0 deletions

24
pkgs/cockroach.nix Normal file
View file

@ -0,0 +1,24 @@
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 = with lib; {
homepage = "https://www.cockroachlabs.com";
description = "A scalable, survivable, strongly-consistent SQL database";
platforms = ["x86_64-linux"];
maintainers = with maintainers; [mic92];
};
}

View file

@ -21,6 +21,7 @@ with final; {
wcwd = writeShellScriptBin "wcwd" (import ./wcwd.nix final);
drone-docker-runner = writeShellScriptBin "drone-docker-runner" (import ./drone-docker-runner.nix final);
record-screen = writeShellScriptBin "record-screen" (import ./record-screen.nix final);
cockroach-bin = import ./cockroach.nix final;
# ps-fixes
}

View file

@ -68,6 +68,7 @@ in {
waypoint
yubikey-agent
age-plugin-yubikey
cockroach-bin
nix-autobahn.packages.${pkgs.system}.default
];
programs.bash.initExtra = ''