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