Files
nixpkgs/pkgs/by-name/sc/scipopt-gcg/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
scipopt-scip,
cliquer,
gsl,
gmp,
bliss,
nauty,
}:
stdenv.mkDerivation rec {
pname = "scipopt-gcg";
version = "372";
# To correlate scipVersion and version, check: https://scipopt.org/#news
scipVersion = "9.2.3";
src = fetchFromGitHub {
owner = "scipopt";
repo = "gcg";
tag = "v${version}";
hash = "sha256-Sx0ZSca7XBT4GqxWt3bzelaXlI7kZCJo+by22mtTFhA=";
};
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";
};
}