From 76be5d03685a46b1d9c42e1522eeacedd5e79c00 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 Jun 2026 08:47:54 +0200 Subject: [PATCH] essh: init at 0.2.8 SSH client to manage connections, keys and sessions https://github.com/matthart1983/essh --- pkgs/by-name/es/essh/package.nix | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/es/essh/package.nix diff --git a/pkgs/by-name/es/essh/package.nix b/pkgs/by-name/es/essh/package.nix new file mode 100644 index 000000000000..1ec379dc7fe6 --- /dev/null +++ b/pkgs/by-name/es/essh/package.nix @@ -0,0 +1,47 @@ +{ + lib, + fetchFromGitHub, + pkg-config, + rustPlatform, + sqlite, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "essh"; + version = "0.2.8"; + + src = fetchFromGitHub { + owner = "matthart1983"; + repo = "essh"; + tag = "v${finalAttrs.version}"; + hash = "sha256-njBhA3CSTAlWjcgY3y+hvl19By2QGy2tHP8+FxgycIA="; + }; + + __structuredAttrs = true; + + cargoHash = "sha256-TlvUdlKnRA/L5oePn+YWum1wy3ktHFuXP5V+nH2QNnc="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ sqlite ]; + + nativeCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + versionCheckProgramArg = [ "-V" ]; + + checkFlags = [ + "--skip=mock_ssh_server_drives_real_connect_flow_end_to_end" + ]; + + meta = { + description = "SSH client to manage connections, keys and sessions"; + homepage = "https://github.com/matthart1983/essh"; + changelog = "https://github.com/matthart1983/essh/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "essh"; + }; +})