mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 00:47:25 +00:00
Merge pull request #104140 from thefloweringash/tcpreplay-darwin
tcpreplay: fix darwin build
This commit is contained in:
commit
b1a729fbed
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user