2021-11-22 20:55:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2023-07-04 07:22:56 +00:00
|
|
|
, Security
|
2021-11-22 20:55:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "slowlorust";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MJVL";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-04 07:22:56 +00:00
|
|
|
hash = "sha256-c4NWkQ/QvlUo1YoV2s7rWB6wQskAP5Qp1WVM23wvV3c=";
|
2021-11-22 20:55:36 +00:00
|
|
|
};
|
|
|
|
|
2023-07-04 07:22:56 +00:00
|
|
|
cargoHash = "sha256-Wu1mm+yJw2SddddxC5NfnMWLr+dplnRxH3AJ1/mTAKM=";
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2021-11-22 20:55:36 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight slowloris (HTTP DoS) tool";
|
|
|
|
homepage = "https://github.com/MJVL/slowlorust";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|