c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
42 lines
920 B
Nix
42 lines
920 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "drill";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcsonline";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-fUfN5410JjxEZAT7Xp7ac6wqsmuxNiRn4bJsc7njZc4=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-MwSbGB5luzraUxvOxj65gML3alYRxhWwJq9D2aX4SdA=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
|
pkg-config
|
|
];
|
|
|
|
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
|
|
OPENSSL_DIR="${lib.getDev openssl}";
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Security
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP load testing application inspired by Ansible syntax";
|
|
homepage = "https://github.com/fcsonline/drill";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
|
};
|
|
}
|