diff --git a/pkgs/by-name/twister/package.nix b/pkgs/by-name/twister/package.nix new file mode 100644 index 00000000..8f0bdac5 --- /dev/null +++ b/pkgs/by-name/twister/package.nix @@ -0,0 +1,47 @@ +{ + autoreconfHook, + curl, + fetchgit, + gnunet, + jansson, + lib, + libgcrypt, + libmicrohttpd, + libsodium, + pkg-config, + stdenv, +}: let + version = "0.9.3"; +in + stdenv.mkDerivation { + inherit version; + pname = "twister"; + + src = fetchgit { + url = "https://git.taler.net/twister.git"; + rev = "v${version}"; + hash = "sha256-3Zp/x46xuL01J3/SR3ab5REcJMC3eQPnSkpOzeK3MKk="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + curl + gnunet + jansson + libgcrypt + libmicrohttpd + libsodium + ]; + + doInstallCheck = true; + + meta = { + homepage = "https://git.taler.net/twister.git"; + description = "Fault injector for HTTP traffic."; + license = lib.licenses.agpl3Plus; + }; + }