71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
boost,
|
|
libixion,
|
|
mdds,
|
|
python3,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "liborcus";
|
|
version = "0.19.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "orcus";
|
|
repo = "orcus";
|
|
rev = version;
|
|
hash = "sha256-+9C52H99c/kL5DEIoXV+WcLnTftRbicRLQN/FdIXBw8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
python3.pythonOnBuildForHost
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
libixion
|
|
mdds
|
|
python3
|
|
zlib
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-boost=${boost.dev}"
|
|
];
|
|
|
|
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";
|
|
changelog = "https://gitlab.com/orcus/orcus/-/blob/${src.rev}/CHANGELOG";
|
|
license = licenses.mpl20;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|