2020-04-15 19:08:20 +01:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2020-05-03 10:20:00 +01:00
|
|
|
, Security
|
2020-04-15 19:08:20 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "drill";
|
2020-05-03 10:20:00 +01:00
|
|
|
version = "0.6.0";
|
2020-04-15 19:08:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcsonline";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-03 10:20:00 +01:00
|
|
|
sha256 = "0pcc91nk68z7hlhj7xvh6v3rybxpy6bzv3pzjcyaq7l0szjljrpw";
|
2020-04-15 19:08:20 +01:00
|
|
|
};
|
|
|
|
|
2020-05-03 10:20:00 +01:00
|
|
|
cargoSha256 = "1611w8b60d3x16ik8v96za0mkr5p0f9gdpz0awprfgj6c3r6s16m";
|
2020-04-15 19:08:20 +01:00
|
|
|
|
2020-05-03 10:20:00 +01:00
|
|
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = [ ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
2020-04-15 19:08:20 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HTTP load testing application inspired by Ansible syntax";
|
|
|
|
homepage = "https://github.com/fcsonline/drill";
|
|
|
|
license = licenses.gpl3;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-15 19:08:20 +01:00
|
|
|
};
|
|
|
|
}
|