From 7cc5d84cd79c31db524acd31556cf97675e7596d Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 10 Feb 2020 18:06:54 -0500 Subject: [PATCH] libtasn1: fix on darwin Test binaries are linked to the libraries at their install path, but those are not installed when checkPhase executes. --- pkgs/development/libraries/libtasn1/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libtasn1/default.nix b/pkgs/development/libraries/libtasn1/default.nix index 215d67dc0b1..d266817c5d7 100644 --- a/pkgs/development/libraries/libtasn1/default.nix +++ b/pkgs/development/libraries/libtasn1/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ texinfo perl ]; doCheck = true; + preCheck = if stdenv.isDarwin then + "export DYLD_LIBRARY_PATH=`pwd`/lib/.libs" + else + null; meta = with stdenv.lib; { homepage = https://www.gnu.org/software/libtasn1/;