2024-08-13 14:26:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitea, installShellFiles, perl }:
|
2021-02-12 16:02:20 +00:00
|
|
|
|
2024-08-13 14:26:20 +00:00
|
|
|
buildGoModule rec {
|
2021-02-12 16:02:20 +00:00
|
|
|
pname = "ssh-tools";
|
2024-08-13 14:26:20 +00:00
|
|
|
version = "1.8-unstable-2024-03-18";
|
2021-02-12 16:02:20 +00:00
|
|
|
|
2024-08-13 14:26:20 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
2021-02-12 16:02:20 +00:00
|
|
|
owner = "vaporup";
|
2024-08-13 14:26:20 +00:00
|
|
|
repo = "ssh-tools";
|
|
|
|
rev = "69c73844b2498c46f1293b129808bfdce8822c28";
|
|
|
|
hash = "sha256-cG75Jn331G0HZZyrE+JWC05f6DgYBz6sx8MTCxsG/vw=";
|
2021-02-12 16:02:20 +00:00
|
|
|
};
|
|
|
|
|
2024-08-13 14:26:20 +00:00
|
|
|
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
|
2021-02-12 16:02:20 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-08-13 14:26:20 +00:00
|
|
|
description = "Making SSH more convenient";
|
|
|
|
homepage = "https://codeberg.org/vaporup/ssh-tools";
|
2021-02-12 16:02:20 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|