slowlorust: fix build on darwin
This commit is contained in:
parent
366c42ffb0
commit
7e681d7f66
2 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -12,13 +13,16 @@ rustPlatform.buildRustPackage rec {
|
|||
owner = "MJVL";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "c4NWkQ/QvlUo1YoV2s7rWB6wQskAP5Qp1WVM23wvV3c=";
|
||||
hash = "sha256-c4NWkQ/QvlUo1YoV2s7rWB6wQskAP5Qp1WVM23wvV3c=";
|
||||
};
|
||||
|
||||
cargoSha256 = "Wu1mm+yJw2SddddxC5NfnMWLr+dplnRxH3AJ1/mTAKM=";
|
||||
cargoHash = "sha256-Wu1mm+yJw2SddddxC5NfnMWLr+dplnRxH3AJ1/mTAKM=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Lightweight slowloris (HTTP DoS) tool";
|
||||
homepage = "https://github.com/MJVL/slowlorust";
|
||||
license = licenses.mit;
|
||||
|
|
|
@ -12678,7 +12678,9 @@ with pkgs;
|
|||
|
||||
slirp4netns = callPackage ../tools/networking/slirp4netns { };
|
||||
|
||||
slowlorust = callPackage ../tools/networking/slowlorust { };
|
||||
slowlorust = callPackage ../tools/networking/slowlorust {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
slsa-verifier = callPackage ../tools/security/slsa-verifier { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue