From dad4101c35d7dbe75ba46dcedc81c69a0b160113 Mon Sep 17 00:00:00 2001 From: Petr Kozorezov Date: Thu, 10 Oct 2024 15:55:04 +0300 Subject: [PATCH] couchbase-shell: init at 1.0.0 (cherry picked from commit 58d3118e612e65d7a19ad7dd76132b9ed0a20767) --- pkgs/by-name/co/couchbase-shell/package.nix | 52 +++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/co/couchbase-shell/package.nix diff --git a/pkgs/by-name/co/couchbase-shell/package.nix b/pkgs/by-name/co/couchbase-shell/package.nix new file mode 100644 index 000000000000..1b610b641b28 --- /dev/null +++ b/pkgs/by-name/co/couchbase-shell/package.nix @@ -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; + }; +}