Unverified Commit 0974a837 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

trojan-go: init at 0.10.6 (#373125)

parents c364e31d 403aa2e8
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{
  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=";

  # 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";
  };
}