2021-10-20 09:18:09 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-15 20:08:20 +02:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2020-05-03 11:20:00 +02:00
|
|
|
, Security
|
2020-04-15 20:08:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "drill";
|
2022-02-01 08:25:35 +01:00
|
|
|
version = "0.7.2";
|
2020-04-15 20:08:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcsonline";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-01 08:25:35 +01:00
|
|
|
sha256 = "sha256-LqqtSmmXr48jB7HyWi954fDNKOynEpQupGYl7QbXUAI=";
|
2020-04-15 20:08:20 +02:00
|
|
|
};
|
|
|
|
|
2022-02-01 08:25:35 +01:00
|
|
|
cargoSha256 = "sha256-SUF/gDy9t2B5N234HZHxMl0Hc0GrVUBw3xeI43c++Nc=";
|
2020-04-15 20:08:20 +02:00
|
|
|
|
2021-10-20 09:18:09 +02:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2020-04-15 20:08:20 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-15 20:08:20 +02:00
|
|
|
description = "HTTP load testing application inspired by Ansible syntax";
|
|
|
|
homepage = "https://github.com/fcsonline/drill";
|
2021-10-20 09:18:09 +02:00
|
|
|
license = licenses.gpl3Only;
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-15 20:08:20 +02:00
|
|
|
};
|
|
|
|
}
|