1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7
8buildGoModule rec {
9 pname = "sshocker";
10 version = "0.3.8";
11
12 src = fetchFromGitHub {
13 owner = "lima-vm";
14 repo = "sshocker";
15 tag = "v${version}";
16 hash = "sha256-uLotIvFpJL5keVyazG+g2TOKqcZwTDqSoAOaswqliNo=";
17 };
18
19 vendorHash = "sha256-uzKLAHxRRw0Bx7HjANOsX0tvfmbJhclT8SP346yFGwc=";
20
21 nativeInstallCheckInputs = [ versionCheckHook ];
22
23 ldflags = [
24 "-s"
25 "-w"
26 "-X=github.com/lima-vm/sshocker/pkg/version.Version=${version}"
27 ];
28
29 doInstallCheck = true;
30
31 versionCheckProgramArg = "--version";
32
33 meta = {
34 description = "Tool for SSH, reverse sshfs and port forwarder";
35 homepage = "https://github.com/lima-vm/sshocker";
36 changelog = "https://github.com/lima-vm/sshocker/releases/tag/v${version}";
37 license = lib.licenses.asl20;
38 maintainers = with lib.maintainers; [ fab ];
39 mainProgram = "sshocker";
40 };
41}