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";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.12.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}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-dn64M/DGnyaoEtbdeytpRsKCXQPvR+dJDI7yFt2IqU0=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
vendorHash = "sha256-P5Y5DwF9Tb9j098XiEJZaEGZhT2Ce2emnV2SawElosI=";
|
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 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "sish";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
}
|