diff --git a/pkgs/by-name/la/lazyssh/package.nix b/pkgs/by-name/la/lazyssh/package.nix new file mode 100644 index 000000000000..d4ad0f548efc --- /dev/null +++ b/pkgs/by-name/la/lazyssh/package.nix @@ -0,0 +1,40 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "lazyssh"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "Adembc"; + repo = "lazyssh"; + tag = "v${finalAttrs.version}"; + hash = "sha256-0R/H+HaJ13dQhLbFgLAvv4MhXADT3UqWeyTgegKjFxM="; + }; + + vendorHash = "sha256-/RgjcAy2H9sWMWDA3QxMkT4LkzxvZqOZzKeR9u9bsH0="; + + ldflags = [ + "-X=main.version=${finalAttrs.version}" + "-X=main.gitCommit=v${finalAttrs.version}" + ]; + + postInstall = '' + mv $out/bin/cmd $out/bin/lazyssh + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Terminal-based SSH manager"; + homepage = "https://github.com/Adembc/lazyssh"; + changelog = "https://github.com/Adembc/lazyssh/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ kpbaks ]; + mainProgram = "lazyssh"; + }; +})