Skip to content

Commit

Permalink
[Backport release-24.05] Add couchbase-shell (#349989)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp authored Oct 24, 2024
2 parents 664f617 + dad4101 commit 5028624
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15342,6 +15342,13 @@
githubId = 28323;
name = "Peter Simons";
};
petrkozorezov = {
email = "petr.kozorezov@gmail.com";
github = "petrkozorezov";
githubId = 645017;
name = "Petr Kozorezov";
keys = [ { fingerprint = "7F1A 353D 3D6D 9CEF 63A9 B5C6 699F 32D5 9999 7C90"; } ];
};
petrosagg = {
email = "petrosagg@gmail.com";
github = "petrosagg";
Expand Down
52 changes: 52 additions & 0 deletions pkgs/by-name/co/couchbase-shell/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
testers,
nix-update-script,
couchbase-shell,
}:

rustPlatform.buildRustPackage rec {
pname = "couchbase-shell";
version = "1.0.0";

src = fetchFromGitHub {
owner = "couchbaselabs";
repo = "couchbase-shell";
rev = "v${version}";
hash = "sha256-ksAyi7yMz56de1lA2LYVNdsn02GNrcJVoRLcK1zFppE=";
};

cargoHash = "sha256-efy1M4Q9dBfEq0YYUKn4y1Rz/dPbBYLapcPXJLI9X+Q=";

nativeBuildInputs = [
pkg-config
];

buildInputs = [
openssl
];

# tests need couchbase server
doCheck = false;

passthru = {
tests.version = testers.testVersion {
package = couchbase-shell;
};
updateScript = nix-update-script { };
};

meta = {
description = "Shell for Couchbase Server and Cloud";
homepage = "https://couchbase.sh/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ petrkozorezov ];
mainProgram = "cbsh";
platforms = lib.platforms.linux;
};
}

0 comments on commit 5028624

Please sign in to comment.