mhost: fix build on darwin

This commit is contained in:
Sebastián Mancilla 2021-11-18 13:29:37 -03:00
parent 8ea3df51cd
commit 586ec1fbe4
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ fetchFromGitHub, rustPlatform, lib }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "mhost";
@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0gqrya0bpdd67k2sxib7f4npnrx84d9r4hjq2sg2xz4j8pmgs018";
buildInputs = lib.optional stdenv.isDarwin Security;
CARGO_CRATE_NAME = "mhost";
doCheck = false;

View file

@ -7674,7 +7674,9 @@ with pkgs;
metasploit = callPackage ../tools/security/metasploit { };
mhost = callPackage ../applications/networking/mhost { };
mhost = callPackage ../applications/networking/mhost {
inherit (darwin.apple_sdk.frameworks) Security;
};
ms-sys = callPackage ../tools/misc/ms-sys { };