Files
nixpkgs/pkgs/by-name/li/liborcus/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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;
};
}