2022-01-27 00:19:43 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sshportal";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "1.19.3";
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moul";
|
|
|
|
repo = "sshportal";
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-8+UHG4xTH9h1IvMoOY7YHPClk4t2vWSBOUnYU6+mynQ=";
|
2022-01-27 00:19:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [ "-X main.GitTag=${version}" "-X main.GitSha=${version}" "-s" "-w" ];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
vendorSha256 = "sha256-swDoQeO44fkpS2JNUAXaj3ZVjjzhoEr34YZ1/ArnLBk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|