nixpkgs/pkgs/tools/networking/sish/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1009 B
Nix
Raw Normal View History

2021-04-20 22:06:27 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-07-11 13:38:35 +00:00
, testers
, sish
2021-04-20 22:06:27 +00:00
}:
buildGoModule rec {
pname = "sish";
2024-05-29 05:30:10 +00:00
version = "2.16.0";
2021-04-20 22:06:27 +00:00
src = fetchFromGitHub {
owner = "antoniomika";
repo = "sish";
rev = "refs/tags/v${version}";
2024-05-29 05:30:10 +00:00
hash = "sha256-YGeUiuLT67UI5whDAKcDFvYGnCIBkX4oCtKq47Qnw1k=";
2021-04-20 22:06:27 +00:00
};
2024-05-01 06:52:00 +00:00
vendorHash = "sha256-hlwJE31osz9MgZ0vCx4L6vo4PuGh0NgiPJgDq65fZ4U=";
2021-04-20 22:06:27 +00:00
2023-07-11 13:33:30 +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}"
];
2023-07-11 13:38:35 +00:00
passthru.tests = {
version = testers.testVersion {
package = sish;
};
};
2021-04-20 22:06:27 +00:00
meta = with lib; {
description = "HTTP(S)/WS(S)/TCP Tunnels to localhost";
homepage = "https://github.com/antoniomika/sish";
changelog = "https://github.com/antoniomika/sish/releases/tag/v${version}";
2021-04-20 22:06:27 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
2024-02-11 02:19:15 +00:00
mainProgram = "sish";
2021-04-20 22:06:27 +00:00
};
}