liborcus: fix cross and enable tests (#380041)

This commit is contained in:
misuzu
2025-02-10 20:10:27 +02:00
committed by GitHub
+21
View File
@@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoreconfHook
pkg-config
python3.pythonOnBuildForHost
];
buildInputs = [
@@ -35,6 +36,26 @@ 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";
homepage = "https://gitlab.com/orcus/orcus";