Files

53 lines
1023 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
testers,
nix-update-script,
couchbase-shell,
}:
rustPlatform.buildRustPackage rec {
pname = "couchbase-shell";
version = "1.3.0";
src = fetchFromGitHub {
owner = "couchbaselabs";
repo = "couchbase-shell";
rev = "v${version}";
hash = "sha256-t4y0VxjRaJ5G/vpqq3/oLE/pIXSDAk+l+9fCcr9n6I4=";
};
cargoHash = "sha256-f2WYczO2kr5BloXGLjjlnmyaKlr9+IH7i8cqGFUEcVA=";
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;
};
}