From 265d2f03ead883777d295152c21c79513f254dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Ferech?= Date: Sat, 23 Dec 2023 00:32:15 +0100 Subject: [PATCH] twister: init at 0.9.3 --- pkgs/by-name/twister/package.nix | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/twister/package.nix 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; + }; + }