From 89c15b53fcae1f9ed2902350c7b668974d17ffc9 Mon Sep 17 00:00:00 2001 From: ljxfstorm Date: Thu, 1 Jan 2026 17:02:22 +0800 Subject: [PATCH] tsshd: init at 0.1.5 --- pkgs/by-name/ts/tsshd/package.nix | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ts/tsshd/package.nix diff --git a/pkgs/by-name/ts/tsshd/package.nix b/pkgs/by-name/ts/tsshd/package.nix new file mode 100644 index 000000000000..18ca7f3e237f --- /dev/null +++ b/pkgs/by-name/ts/tsshd/package.nix @@ -0,0 +1,42 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "tsshd"; + version = "0.1.5"; + + src = fetchFromGitHub { + owner = "trzsz"; + repo = finalAttrs.pname; + tag = "v${finalAttrs.version}"; + hash = "sha256-JNuLN0eA+HSG/Uv5kTgYmOVBSTIBDAJ6vqPa7z+JYTg="; + }; + + vendorHash = "sha256-XjPXbhrMUYObgw0BBYT4BxDoE6THEYXnAZ5y5rUKgh4="; + + ldflags = [ + "-s" + "-w" + ]; + + doInstallCheck = true; + nativeCheckInputs = [ + versionCheckHook + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Server for `trzsz-ssh`(`tssh`) that supports connection migration for roaming"; + homepage = "https://github.com/trzsz/tsshd"; + changelog = "https://github.com/trzsz/tsshd/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ljxfstorm ]; + mainProgram = "tsshd"; + }; +})