libgcrypt: fix test crash on Darwin

This commit is contained in:
Jude Taylor 2015-08-25 12:08:59 -07:00
parent 881fd7f589
commit 34c092b114

View File

@ -22,6 +22,13 @@ stdenv.mkDerivation rec {
sed -i 's,\(-lcap\),-L${libcap}/lib \1,' $out/lib/libgcrypt.la
'';
# TODO: figure out why this is even necessary and why the missing dylib only crashes
# random instead of every test
preCheck = stdenv.lib.optionalString stdenv.isDarwin ''
mkdir -p $out/lib
cp src/.libs/libgcrypt.20.dylib $out/lib
'';
doCheck = true;
meta = {