blob: 28bc6cd628eabff066a82a235e7a0dcbc0f70ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
bash,
buildGoModule,
fetchFromCodeberg,
installShellFiles,
perl,
}:
buildGoModule (finalAttrs: {
pname = "ssh-tools";
version = "1.9";
src = fetchFromCodeberg {
owner = "vaporup";
repo = "ssh-tools";
tag = "v${finalAttrs.version}";
hash = "sha256-ZMjpc2zjvuLJES5ixEHvo7oAx1JGzy60LzN09Ykn/54=";
};
vendorHash = "sha256-GSFhz3cIRl4XUA18HUeUkrw+AJyOkU3ZrZKYTGsWbug=";
subPackages = [
"cmd/go/ssh-authorized-keys"
"cmd/go/ssh-sig"
];
nativeBuildInputs = [ installShellFiles ];
buildInputs = [
bash
perl
];
postInstall = ''
install cmd/{bash,perl}/ssh-*/ssh-* -t $out/bin
installManPage man/*.1
'';
meta = {
description = "Making SSH more convenient";
homepage = "https://codeberg.org/vaporup/ssh-tools";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
})
|