2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "drill";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "0.8.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcsonline";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-fUfN5410JjxEZAT7Xp7ac6wqsmuxNiRn4bJsc7njZc4=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
cargoSha256 = "sha256-MwSbGB5luzraUxvOxj65gML3alYRxhWwJq9D2aX4SdA=";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
|
2022-03-30 09:31:56 +00:00
|
|
|
OPENSSL_DIR="${lib.getDev openssl}";
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "HTTP load testing application inspired by Ansible syntax";
|
|
|
|
homepage = "https://github.com/fcsonline/drill";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|