12 src = fetchFromGitHub {
16 sha256 = "sha256-zwKeJ8LMMSSHvE0x0/9j3wBdAJG43RiGcszKz0B3dG8=";
19 vendorHash = "sha256-eSQvLsSWWypA5vXR/GiEf5j7TzzsL8ZFRPOeICsIrlY=";
21 excludedPackages = [ "test/e2e" ];
23 ldflags = [ "-s" "-w" "-X github.com/Shopify/toxiproxy/v2.Version=${version}" ];
25 # Fixes tests on Darwin
26 __darwinAllowLocalNetworking = true;
30 "-skip=TestVersionEndpointReturnsVersion|TestFullstreamLatencyBiasDown"
34 mv $out/bin/cli $out/bin/toxiproxy-cli
35 mv $out/bin/server $out/bin/toxiproxy-server
39 cliVersion = testers.testVersion {
42 command = "${toxiproxy}/bin/toxiproxy-cli -version";
44 serverVersion = testers.testVersion {
47 command = "${toxiproxy}/bin/toxiproxy-server -version";
52 changelog = "https://github.com/Shopify/toxiproxy/releases/tag/v${version}";
53 description = "Proxy for for simulating network conditions";
54 homepage = "https://github.com/Shopify/toxiproxy";
55 maintainers = with lib.maintainers; [ avnik ];
56 license = lib.licenses.mit;