1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "sshified";
9 version = "1.2.1";
10
11 src = fetchFromGitHub {
12 owner = "hoffie";
13 repo = "sshified";
14 tag = "v${version}";
15 hash = "sha256-oCeuQ4Do+Lyqsf8hBH9qvLxWbWQlqol481VrbnAW2ic=";
16 };
17
18 vendorHash = null;
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=main.Version=${version}"
24 ];
25
26 subPackages = [ "." ];
27
28 meta = {
29 description = "Proxy HTTP requests through SSH";
30 homepage = "https://github.com/hoffie/sshified";
31 changelog = "https://github.com/hoffie/sshified/blob/v${version}/CHANGELOG.md";
32 license = lib.licenses.asl20;
33 maintainers = with lib.maintainers; [ joinemm ];
34 mainProgram = "sshified";
35 };
36}