libtins: fix test on darwin

This commit is contained in:
Matthew Bauer 2019-04-22 23:43:00 -04:00
parent f988cf4b86
commit f4d9adff9a

View File

@ -31,7 +31,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = true;
checkPhase = "make tests && LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib make test";
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/lib
'';
checkTarget = "tests test";
meta = with stdenv.lib; {
description = "High-level, multiplatform C++ network packet sniffing and crafting library";