tcpreplay: Fix build after splitting libpcap to multiple outputs
Configure file of tcpreplay expects that libpcap header files and libraries share the same prefix. Since [1] this is no longer true so we have to patch the configure script. [1]: https://github.com/NixOS/nixpkgs/pull/429972/commits/da89a2d075f2279a09585c1b217b8f7382817339
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user