mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #37927 from avnik/init/toxiproxy
toxiproxy: Init at 2.1.3
This commit is contained in:
commit
38d33581d0
2 changed files with 28 additions and 0 deletions
26
pkgs/development/tools/toxiproxy/default.nix
Normal file
26
pkgs/development/tools/toxiproxy/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "toxiproxy-${version}";
|
||||
version = "2.1.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Shopify";
|
||||
repo = "toxiproxy";
|
||||
rev = "v${version}";
|
||||
sha256 = "1a7yry846iwi9cs9xam2vjbw73fjy45agjrwk214k0n1ziaawz2f";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/Shopify/toxiproxy";
|
||||
subPackages = ["cmd" "cli"];
|
||||
buildFlagsArray = "-ldflags=-X github.com/Shopify/toxiproxy.Version=v${version}";
|
||||
|
||||
postInstall = ''
|
||||
mv $bin/bin/cli $bin/bin/toxiproxy-cli
|
||||
mv $bin/bin/cmd $bin/bin/toxiproxy-cmd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Proxy for for simulating network conditions.";
|
||||
maintainers = with lib.maintainers; [ avnik ];
|
||||
};
|
||||
}
|
|
@ -18025,6 +18025,8 @@ with pkgs;
|
|||
|
||||
toxic = callPackage ../applications/networking/instant-messengers/toxic { };
|
||||
|
||||
toxiproxy = callPackage ../development/tools/toxiproxy { };
|
||||
|
||||
tqsl = callPackage ../applications/misc/tqsl { };
|
||||
|
||||
transcode = callPackage ../applications/audio/transcode { };
|
||||
|
|
Loading…
Reference in a new issue