scipopt-gcg: init at 3.7.1

This commit is contained in:
fettgoenner 2025-03-28 16:05:44 +01:00
parent ca8edebf61
commit 2cb408c0b0

View file

@ -0,0 +1,65 @@
{
lib,
pkgs,
stdenv,
fetchFromGitHub,
cmake,
scipopt-scip,
cliquer,
gsl,
gmp,
bliss,
nauty,
}:
stdenv.mkDerivation rec {
pname = "scipopt-gcg";
version = "371";
# To correlate scipVersion and version, check: https://scipopt.org/#news
scipVersion = "9.2.1";
src = fetchFromGitHub {
owner = "scipopt";
repo = "gcg";
tag = "v${version}";
hash = "sha256-+rD8tGE49Irg9xZTD3Ay87ISSeRI4kbBpCj5ppyENbo=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
scipopt-scip
cliquer
gsl
gmp
bliss
nauty
];
# Fixing the error
# > CMake Error at CMakeLists.txt:236 (find_package):
# > By not providing "FindNAUTY.cmake" in CMAKE_MODULE_PATH this project has
# > asked CMake to find a package configuration file provided by "NAUTY", but
# > CMake did not find one.
# with this weird workaround of setting SCIPOptSuite_SOURCE_DIR to include the scipopt-scip source
# files via symlinks, so the specific nauty files are found:
preConfigure = ''
mkdir -pv $out/scip
ln -sv ${scipopt-scip.src}/src/ $out/scip/src
cmakeFlagsArray+=(
"-DSCIPOptSuite_SOURCE_DIR=$out"
)
'';
doCheck = true;
meta = {
maintainers = with lib.maintainers; [ fettgoenner ];
changelog = "https://scipopt.org/doc-${scipVersion}/html/RN${lib.versions.major scipVersion}.php";
description = "Branch-and-Price & Column Generation for Everyone";
license = lib.licenses.lgpl3Plus;
homepage = "https://gcg.zib.de";
mainProgram = "gcg";
};
}