lazyssh: init at 0.2.0 (#439626)

Changed files
+40
pkgs
by-name
la
lazyssh
+40
pkgs/by-name/la/lazyssh/package.nix
···
+
{
+
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";
+
};
+
})