lazyssh: init at 0.2.0 (#439626)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user