2022-01-27 00:19:43 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sshportal";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.19.5";
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moul";
|
|
|
|
repo = "sshportal";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-XJ8Hgc8YoJaH2gYOvoYhcpY4qgasgyr4M+ecKJ/RXTs=";
|
2022-01-27 00:19:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [ "-X main.GitTag=${version}" "-X main.GitSha=${version}" "-s" "-w" ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-4dMZwkLHS14OGQVPq5VaT/aEpHEJ/4b2P6q3/WiDicM=";
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "sshportal";
|
2022-01-27 00:19:43 +00:00
|
|
|
};
|
|
|
|
}
|