Files
nixpkgs/pkgs/by-name/si/sish/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1004 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
sish,
}:
buildGoModule rec {
pname = "sish";
version = "2.20.0";
src = fetchFromGitHub {
owner = "antoniomika";
repo = "sish";
tag = "v${version}";
hash = "sha256-zw8zWvyApozHXROZV/o4hZ1EEl0u12snRxjhsqtSrI0=";
};
vendorHash = "sha256-FQzmFyunNllbn4Vaj+kzLamIXDGdWn90TA577EkgI6c=";
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;
};
};
meta = {
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}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "sish";
};
}