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 { rustPlatform.buildRustPackage rec {
pname = "mhost"; pname = "mhost";
@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0gqrya0bpdd67k2sxib7f4npnrx84d9r4hjq2sg2xz4j8pmgs018"; cargoSha256 = "0gqrya0bpdd67k2sxib7f4npnrx84d9r4hjq2sg2xz4j8pmgs018";
buildInputs = lib.optional stdenv.isDarwin Security;
CARGO_CRATE_NAME = "mhost"; CARGO_CRATE_NAME = "mhost";
doCheck = false; doCheck = false;

View File

@ -7674,7 +7674,9 @@ with pkgs;
metasploit = callPackage ../tools/security/metasploit { }; 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 { }; ms-sys = callPackage ../tools/misc/ms-sys { };