termshark: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:18:00 -05:00
parent 4e9e877ca3
commit 7c096126c7
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli }:
{ stdenv, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli, Security }:
buildGoModule rec {
pname = "termshark";
@ -12,7 +12,8 @@ buildGoModule rec {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ wireshark-cli ];
buildInputs = [ wireshark-cli ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
modSha256 = "0lp4gky76di7as78421p3lsirfr7mic3z204ildvj6gf6d15svpr";

View file

@ -19527,7 +19527,9 @@ in
sngrep = callPackage ../applications/networking/sniffers/sngrep {};
termshark = callPackage ../tools/networking/termshark { };
termshark = callPackage ../tools/networking/termshark {
inherit (darwin.apple_sdk.frameworks) Security;
};
fbida = callPackage ../applications/graphics/fbida { };