mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
scipopt-gcg: init at 3.7.1
This commit is contained in:
parent
ca8edebf61
commit
2cb408c0b0
1 changed files with 65 additions and 0 deletions
65
pkgs/by-name/sc/scipopt-gcg/package.nix
Normal file
65
pkgs/by-name/sc/scipopt-gcg/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue