Skip to content

Commit 49e859f

Browse files
authored
Add couchbase-shell (#347727)
2 parents 30923b3 + 58d3118 commit 49e859f

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16619,6 +16619,13 @@
1661916619
githubId = 28323;
1662016620
name = "Peter Simons";
1662116621
};
16622+
petrkozorezov = {
16623+
email = "[email protected]";
16624+
github = "petrkozorezov";
16625+
githubId = 645017;
16626+
name = "Petr Kozorezov";
16627+
keys = [ { fingerprint = "7F1A 353D 3D6D 9CEF 63A9 B5C6 699F 32D5 9999 7C90"; } ];
16628+
};
1662216629
petrosagg = {
1662316630
email = "[email protected]";
1662416631
github = "petrosagg";
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
stdenv,
4+
rustPlatform,
5+
fetchFromGitHub,
6+
pkg-config,
7+
openssl,
8+
testers,
9+
nix-update-script,
10+
couchbase-shell,
11+
}:
12+
13+
rustPlatform.buildRustPackage rec {
14+
pname = "couchbase-shell";
15+
version = "1.0.0";
16+
17+
src = fetchFromGitHub {
18+
owner = "couchbaselabs";
19+
repo = "couchbase-shell";
20+
rev = "v${version}";
21+
hash = "sha256-ksAyi7yMz56de1lA2LYVNdsn02GNrcJVoRLcK1zFppE=";
22+
};
23+
24+
cargoHash = "sha256-efy1M4Q9dBfEq0YYUKn4y1Rz/dPbBYLapcPXJLI9X+Q=";
25+
26+
nativeBuildInputs = [
27+
pkg-config
28+
];
29+
30+
buildInputs = [
31+
openssl
32+
];
33+
34+
# tests need couchbase server
35+
doCheck = false;
36+
37+
passthru = {
38+
tests.version = testers.testVersion {
39+
package = couchbase-shell;
40+
};
41+
updateScript = nix-update-script { };
42+
};
43+
44+
meta = {
45+
description = "Shell for Couchbase Server and Cloud";
46+
homepage = "https://couchbase.sh/";
47+
license = lib.licenses.asl20;
48+
maintainers = with lib.maintainers; [ petrkozorezov ];
49+
mainProgram = "cbsh";
50+
platforms = lib.platforms.linux;
51+
};
52+
}

0 commit comments

Comments
 (0)