2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-15 18:08:20 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2020-05-03 09:20:00 +00:00
|
|
|
, Security
|
2020-04-15 18:08:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "drill";
|
2020-11-30 18:18:22 +00:00
|
|
|
version = "0.7.0";
|
2020-04-15 18:08:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcsonline";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-30 18:18:22 +00:00
|
|
|
sha256 = "07zz0dj0wjwrc1rmayz7s8kpcv03i0ygl4vfwsam72qd4nf6v538";
|
2020-04-15 18:08:20 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 18:18:22 +00:00
|
|
|
cargoSha256 = "1nbfbmm9v1yp7380zdzz7qrc7x6krwlvgn5x5yzb8yn1rc99jzx4";
|
2020-04-15 18:08:20 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
2020-05-03 09:20:00 +00:00
|
|
|
buildInputs = [ ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2020-04-15 18:08:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-15 18:08:20 +00:00
|
|
|
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 18:08:20 +00:00
|
|
|
};
|
|
|
|
}
|