Merge pull request #104140 from thefloweringash/tcpreplay-darwin

tcpreplay: fix darwin build
This commit is contained in:
Sandro 2020-11-23 14:29:14 +01:00 committed by GitHub
commit b1a729fbed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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