liborcus: fix cross and enable tests (#380041)

Changed files
+21
pkgs
by-name
li
liborcus
+21
pkgs/by-name/li/liborcus/package.nix
···
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
···
python3
zlib
];
meta = with lib; {
description = "Collection of parsers and import filters for spreadsheet documents";
···
nativeBuildInputs = [
autoreconfHook
pkg-config
+
python3.pythonOnBuildForHost
];
buildInputs = [
···
python3
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";