2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, testers
|
|
|
|
, sish
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sish";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.11.0";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoniomika";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-dNwSMDEt142A0rP212bWBZSX2zhYgL94EJymOvegTa8=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-XtN2RgegmKR/RDFBbHn9kpI1BxmF7jfu7LAwPVaAvEk=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/antoniomika/sish/cmd.Commit=${src.rev}"
|
|
|
|
"-X=github.com/antoniomika/sish/cmd.Date=1970-01-01"
|
|
|
|
"-X=github.com/antoniomika/sish/cmd.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = sish;
|
|
|
|
};
|
|
|
|
};
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP(S)/WS(S)/TCP Tunnels to localhost";
|
|
|
|
homepage = "https://github.com/antoniomika/sish";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/antoniomika/sish/releases/tag/v${version}";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|