teutat3s: add cockroach-bin
This commit is contained in:
parent
bc519e213d
commit
8939568d7c
24
pkgs/cockroach.nix
Normal file
24
pkgs/cockroach.nix
Normal 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];
|
||||||
|
};
|
||||||
|
}
|
|
@ -21,6 +21,7 @@ with final; {
|
||||||
wcwd = writeShellScriptBin "wcwd" (import ./wcwd.nix final);
|
wcwd = writeShellScriptBin "wcwd" (import ./wcwd.nix final);
|
||||||
drone-docker-runner = writeShellScriptBin "drone-docker-runner" (import ./drone-docker-runner.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);
|
record-screen = writeShellScriptBin "record-screen" (import ./record-screen.nix final);
|
||||||
|
cockroach-bin = import ./cockroach.nix final;
|
||||||
|
|
||||||
# ps-fixes
|
# ps-fixes
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ in {
|
||||||
waypoint
|
waypoint
|
||||||
yubikey-agent
|
yubikey-agent
|
||||||
age-plugin-yubikey
|
age-plugin-yubikey
|
||||||
|
cockroach-bin
|
||||||
nix-autobahn.packages.${pkgs.system}.default
|
nix-autobahn.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
programs.bash.initExtra = ''
|
programs.bash.initExtra = ''
|
||||||
|
|
Loading…
Reference in a new issue