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
60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
boost,
|
|
onetbb,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "papilo";
|
|
version = "2.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scipopt";
|
|
repo = "papilo";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-SsRAwidqvisoDODBLRatVWFw7wGeLUavmPXSlPmD7d8=";
|
|
};
|
|
|
|
# skip SEGFAULT tests
|
|
postPatch =
|
|
lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
substituteInPlace test/CMakeLists.txt \
|
|
--replace-fail '"matrix-buffer"' "" \
|
|
--replace-fail '"vector-comparisons"' "" \
|
|
--replace-fail '"matrix-comparisons"' "" \
|
|
--replace-fail '"presolve-activity-is-updated-correctly-huge-values"' "" \
|
|
--replace-fail '"problem-comparisons"' "" \
|
|
--replace-fail "Boost_IOSTREAMS_FOUND" "FALSE"
|
|
''
|
|
+ (lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
|
|
substituteInPlace test/CMakeLists.txt \
|
|
--replace-fail '"happy-path-replace-variable"' ""
|
|
'');
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
boost
|
|
cmake
|
|
onetbb
|
|
];
|
|
|
|
propagatedBuildInputs = [ onetbb ];
|
|
|
|
strictDeps = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = "https://scipopt.org/";
|
|
description = "Parallel Presolve for Integer and Linear Optimization";
|
|
license = with lib.licenses; [ lgpl3Plus ];
|
|
mainProgram = "papilo";
|
|
maintainers = with lib.maintainers; [ david-r-cox ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|