diff --git a/pkgs/by-name/li/liborcus/package.nix b/pkgs/by-name/li/liborcus/package.nix index 2a4a0910caa9..d50b469fc91e 100644 --- a/pkgs/by-name/li/liborcus/package.nix +++ b/pkgs/by-name/li/liborcus/package.nix @@ -36,7 +36,25 @@ stdenv.mkDerivation rec { zlib ]; + preCheck = + '' + patchShebangs test/python + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' + export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}${ + lib.concatMapStringsSep ":" (d: "$(pwd)/src/${d}/.libs") [ + "liborcus" + "parser" + "python" + "spreadsheet" + ] + } + ''; + strictDeps = true; + doCheck = true; + enableParallelBuilding = true; + enableParallelChecking = true; meta = with lib; { description = "Collection of parsers and import filters for spreadsheet documents";