about summary refs log tree commit diff
path: root/pkgs/servers/sshportal/default.nix
blob: 58c0b5a2077f6c7b2659097af54936ec32433189 (plain) (blame)
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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "sshportal";
  version = "1.19.5";

  src = fetchFromGitHub {
    owner = "moul";
    repo = "sshportal";
    rev = "v${version}";
    sha256 = "sha256-XJ8Hgc8YoJaH2gYOvoYhcpY4qgasgyr4M+ecKJ/RXTs=";
  };

  ldflags = [ "-X main.GitTag=${version}" "-X main.GitSha=${version}" "-s" "-w" ];

  vendorHash = "sha256-4dMZwkLHS14OGQVPq5VaT/aEpHEJ/4b2P6q3/WiDicM=";

  meta = with lib; {
    description = "Simple, fun and transparent SSH (and telnet) bastion server";
    homepage = "https://manfred.life/sshportal";
    license = licenses.asl20;
    maintainers = with maintainers; [ zaninime ];
    mainProgram = "sshportal";
  };
}