tcpreplay: fix darwin build

This commit is contained in:
Andrew Childs 2020-11-18 15:02:58 +09:00
parent 52d3cc4438
commit d6a09adb5f
2 changed files with 10 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libpcap, tcpdump }:
{ stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
stdenv.mkDerivation rec {
pname = "tcpreplay";
@ -9,7 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1plgjm3dr9rr5q71s7paqk2wgrvkihbk2yrf9g3zaks3m750497d";
};
buildInputs = [ libpcap ];
buildInputs = [ libpcap ]
++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [
Carbon CoreServices
];
configureFlags = [
"--disable-local-libopts"
@ -26,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "http://tcpreplay.appneta.com/";
license = with licenses; [ bsd3 gpl3 ];
maintainers = with maintainers; [ eleanor ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -7517,7 +7517,9 @@ in
tcpkali = callPackage ../applications/networking/tcpkali { };
tcpreplay = callPackage ../tools/networking/tcpreplay { };
tcpreplay = callPackage ../tools/networking/tcpreplay {
inherit (darwin.apple_sdk.frameworks) Carbon CoreServices;
};
tdns-cli = callPackage ../tools/networking/tdns-cli { };