depot/third_party/nixpkgs/pkgs/applications/misc/ssh-tools/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

37 lines
926 B
Nix

{ lib, buildGoModule, fetchFromGitea, installShellFiles, perl }:
buildGoModule rec {
pname = "ssh-tools";
version = "1.8-unstable-2024-03-18";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "vaporup";
repo = "ssh-tools";
rev = "69c73844b2498c46f1293b129808bfdce8822c28";
hash = "sha256-cG75Jn331G0HZZyrE+JWC05f6DgYBz6sx8MTCxsG/vw=";
};
vendorHash = "sha256-GSFhz3cIRl4XUA18HUeUkrw+AJyOkU3ZrZKYTGsWbug=";
subPackages = [
"cmd/go/ssh-authorized-keys"
"cmd/go/ssh-sig"
];
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ perl ];
postInstall = ''
install cmd/{bash,perl}/ssh-*/ssh-* -t $out/bin
installManPage man/*.1
'';
meta = with lib; {
description = "Making SSH more convenient";
homepage = "https://codeberg.org/vaporup/ssh-tools";
license = licenses.gpl3Only;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}