diff --git a/pkgs/by-name/gh/ghostscript/package.nix b/pkgs/by-name/gh/ghostscript/package.nix index ccf1daa72ffb7..b4337c8739cd8 100644 --- a/pkgs/by-name/gh/ghostscript/package.nix +++ b/pkgs/by-name/gh/ghostscript/package.nix @@ -155,6 +155,10 @@ stdenv.mkDerivation rec { done ''; + preInstallCheck = if stdenv.hostPlatform.isDarwin then '' + DYLD_LIBRARY_PATH=$out/lib + export DYLD_LIBRARY_PATH + '' else null; # validate dynamic linkage doInstallCheck = true; installCheckPhase = ''