Unverified Commit b9428fe6 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

tcpreplay: Fix build after splitting libpcap to multiple outputs (#442048)

parents 970b8015 d0a565c1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,13 @@ stdenv.mkDerivation rec {

  buildInputs = [ libpcap ];

  # Allow having different prefix for header files (default output
  # "out") and libraries ("lib" output)
  postPatch = ''
    substituteInPlace configure \
      --replace-fail 'ls ''${testdir}/$dir/libpcap' 'ls ${lib.getLib libpcap}/$dir/libpcap'
  '';

  configureFlags = [
    "--disable-local-libopts"
    "--disable-libopts-install"