Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2023-12-09 21:56:15 -10:00
{
lib,
stdenv,
2025-06-18 02:22:05 +08:00
fetchFromGitHub,
cmake,
boost,
tbb_2022,
2023-12-09 21:56:15 -10:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "papilo";
2025-07-21 20:22:19 +00:00
version = "2.4.3";
2023-12-09 21:56:15 -10:00
src = fetchFromGitHub {
owner = "scipopt";
repo = "papilo";
2025-06-18 02:22:05 +08:00
tag = "v${finalAttrs.version}";
2025-07-21 20:22:19 +00:00
hash = "sha256-SsRAwidqvisoDODBLRatVWFw7wGeLUavmPXSlPmD7d8=";
2023-12-09 21:56:15 -10:00
};
2025-06-18 02:22:05 +08:00
# 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 ];
2023-12-09 21:56:15 -10:00
buildInputs = [
boost
cmake
tbb_2022
2023-12-09 21:56:15 -10:00
];
propagatedBuildInputs = [ tbb_2022 ];
2023-12-09 21:56:15 -10:00
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;
};
})