3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/polymake/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl
2021-07-25 17:24:58 +01:00
, perl, gmp, mpfr, flint, boost
2018-11-19 07:50:02 +00:00
, bliss, ppl, singular, cddlib, lrs, nauty
2021-07-25 17:24:58 +01:00
, ninja, ant, openjdk
2018-11-19 07:50:02 +00:00
, perlPackages
, makeWrapper
}:
2021-07-25 17:24:58 +01: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.
2018-11-19 07:50:02 +00:00
stdenv.mkDerivation rec {
pname = "polymake";
2022-02-13 04:50:20 +00:00
version = "4.6";
2018-11-19 07:50:02 +00:00
src = fetchurl {
2021-07-25 17:24:58 +01: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";
2022-02-13 04:50:20 +00:00
sha256 = "sha256-QjpE3e8R6uqEV6sV3V2G3beovMbJuxF3b54pWNfc+dA=";
2018-11-19 07:50:02 +00:00
};
buildInputs = [
2021-07-25 17:24:58 +01:00
perl gmp mpfr flint boost
2018-11-19 07:50:02 +00:00
bliss ppl singular cddlib lrs nauty
openjdk
2021-07-25 17:24:58 +01:00
] ++ (with perlPackages; [
JSON TermReadLineGnu TermReadKey XMLSAX
2018-11-19 07:50:02 +00:00
]);
nativeBuildInputs = [
makeWrapper ninja ant perl
];
2019-11-04 23:23:36 +00:00
ninjaFlags = [ "-C" "build/Opt" ];
2018-11-19 07:50:02 +00:00
postInstall = ''
for i in "$out"/bin/*; do
wrapProgram "$i" --prefix PERL5LIB : "$PERL5LIB"
done
'';
2021-07-25 17:24:58 +01:00
meta = with lib; {
2018-11-19 07:50:02 +00:00
description = "Software for research in polyhedral geometry";
2021-07-25 17:24:58 +01:00
license = licenses.gpl2Plus;
maintainers = teams.sage.members;
platforms = platforms.linux;
2018-11-19 07:50:02 +00:00
homepage = "https://www.polymake.org/doku.php";
};
}