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
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "trojan-go";
|
|
version = "0.10.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p4gefau1t";
|
|
repo = "trojan-go";
|
|
tag = "v${version}";
|
|
hash = "sha256-ZzIEKyLhHwYEWBfi6fHlCbkEImetEaRewbsHQEduB5Y=";
|
|
};
|
|
|
|
vendorHash = "sha256-c6H/8/dmCWasFKVR15U/kty4AzQAqmiL/VLKrPtH+s4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/p4gefau1t/trojan-go/constant.Version=v${version}"
|
|
"-X github.com/p4gefau1t/trojan-go/constant.Commit=v${version}"
|
|
];
|
|
|
|
tags = [
|
|
"api"
|
|
"client"
|
|
"server"
|
|
"forward"
|
|
"nat"
|
|
"other"
|
|
];
|
|
|
|
# tests fail due to requiring networking
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Proxy mechanism to bypass GFW";
|
|
homepage = "https://p4gefau1t.github.io/trojan-go/";
|
|
changelog = "https://github.com/p4gefau1t/trojan-go/releases/tag/v${version}";
|
|
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "trojan-go";
|
|
};
|
|
}
|