2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
, flint
|
|
|
|
, boost
|
|
|
|
, bliss
|
|
|
|
, ppl
|
|
|
|
, singular
|
|
|
|
, cddlib
|
|
|
|
, lrs
|
|
|
|
, nauty
|
|
|
|
, ninja
|
|
|
|
, ant
|
|
|
|
, openjdk
|
2024-04-21 15:54:59 +00:00
|
|
|
, perl
|
|
|
|
, perlPackages
|
2020-04-24 23:36:52 +00:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
# polymake compiles its own version of sympol and atint because we
|
|
|
|
# don't have those packages. other missing optional dependencies:
|
|
|
|
# javaview, libnormaliz, scip, soplex, jreality.
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "polymake";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "4.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-08 23:34:03 +00:00
|
|
|
# "The minimal version is a packager friendly version which omits
|
|
|
|
# the bundled sources of cdd, lrs, libnormaliz, nauty and jReality."
|
|
|
|
url = "https://polymake.org/lib/exe/fetch.php/download/polymake-${version}-minimal.tar.bz2";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-vVpmf/ykv3641RE0Awzj3zsW3Z0OgA+v2xzoNYZ2QNk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
ninja
|
|
|
|
ant
|
|
|
|
perl
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
perl
|
|
|
|
gmp
|
|
|
|
mpfr
|
|
|
|
flint
|
|
|
|
boost
|
|
|
|
bliss
|
|
|
|
ppl
|
|
|
|
singular
|
|
|
|
cddlib
|
|
|
|
lrs
|
|
|
|
nauty
|
2020-04-24 23:36:52 +00:00
|
|
|
openjdk
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ (with perlPackages; [
|
2022-12-28 21:21:41 +00:00
|
|
|
JSON
|
|
|
|
TermReadLineGnu
|
|
|
|
TermReadKey
|
|
|
|
XMLSAX
|
2020-04-24 23:36:52 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
ninjaFlags = [ "-C" "build/Opt" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" --prefix PERL5LIB : "$PERL5LIB"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software for research in polyhedral geometry";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://www.polymake.org/doku.php";
|
|
|
|
changelog = "https://github.com/polymake/polymake/blob/V${version}/ChangeLog";
|
2021-08-08 23:34:03 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = teams.sage.members;
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|