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
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
zlib,
|
|
readline,
|
|
gmp,
|
|
scipopt-soplex,
|
|
scipopt-papilo,
|
|
scipopt-zimpl,
|
|
ipopt,
|
|
onetbb,
|
|
boost,
|
|
gfortran,
|
|
criterion,
|
|
mpfr,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "scipopt-scip";
|
|
version = "9.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scipopt";
|
|
repo = "scip";
|
|
tag = "v${lib.replaceStrings [ "." ] [ "" ] version}";
|
|
hash = "sha256-Zc1AXNpHQXXFO8jkMaJj6xYkmkQxAM8G+SiPiH9xCAw=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/scipopt/scip/pull/169
|
|
./0001-check-fix-invalid-ctest-invocation.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
scipopt-soplex
|
|
scipopt-papilo
|
|
scipopt-zimpl
|
|
ipopt
|
|
gmp
|
|
readline
|
|
zlib
|
|
onetbb
|
|
boost
|
|
gfortran
|
|
criterion
|
|
mpfr # if not included, throws fatal error: mpfr.h not found
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ fettgoenner ];
|
|
changelog = "https://scipopt.org/doc-${version}/html/RN${lib.versions.major version}.php";
|
|
description = "Solving Constraint Integer Programs";
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://github.com/scipopt/scip";
|
|
mainProgram = "scip";
|
|
};
|
|
}
|