biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / sish / default.nix
blobbe17d6fe885bec05a40a1f68deda223dea464c60
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , sish
6 }:
8 buildGoModule rec {
9   pname = "sish";
10   version = "2.16.0";
12   src = fetchFromGitHub {
13     owner = "antoniomika";
14     repo = "sish";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-YGeUiuLT67UI5whDAKcDFvYGnCIBkX4oCtKq47Qnw1k=";
17   };
19   vendorHash = "sha256-hlwJE31osz9MgZ0vCx4L6vo4PuGh0NgiPJgDq65fZ4U=";
21   ldflags = [
22     "-s"
23     "-w"
24     "-X=github.com/antoniomika/sish/cmd.Commit=${src.rev}"
25     "-X=github.com/antoniomika/sish/cmd.Date=1970-01-01"
26     "-X=github.com/antoniomika/sish/cmd.Version=${version}"
27   ];
29   passthru.tests = {
30     version = testers.testVersion {
31       package = sish;
32     };
33   };
35   meta = with lib; {
36     description = "HTTP(S)/WS(S)/TCP Tunnels to localhost";
37     homepage = "https://github.com/antoniomika/sish";
38     changelog = "https://github.com/antoniomika/sish/releases/tag/v${version}";
39     license = with licenses; [ mit ];
40     maintainers = with maintainers; [ fab ];
41     mainProgram = "sish";
42   };