diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 51fa6cda5dee9..85c814cd9ba21 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -149,6 +149,10 @@ stdenv.mkDerivation rec { # validate dynamic linkage doInstallCheck = true; + preInstallCheck = if stdenv.hostPlatform.isDarwin then '' + DYLD_LIBRARY_PATH=$out/lib + export DYLD_LIBRARY_PATH + '' else null; installCheckPhase = '' runHook preInstallCheck