slowlorust: fix build on darwin

This commit is contained in:
Theodore Ni 2023-07-04 00:22:56 -07:00
parent 366c42ffb0
commit 7e681d7f66
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
2 changed files with 10 additions and 4 deletions

View file

@ -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;

View file

@ -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 { };