nixpkgs/pkgs/applications/science/math/polymake/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl
2018-11-19 07:50:02 +00:00
, ninja, libxml2, libxslt, readline, perl, gmp, mpfr, boost
, bliss, ppl, singular, cddlib, lrs, nauty
, ant, openjdk
, perlPackages
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "polymake";
version = "3.2.rc4";
src = fetchurl {
url = "https://polymake.org/lib/exe/fetch.php/download/polymake-3.2r4.tar.bz2";
sha256 = "02jpkvy1cc6kc23vkn7nkndzr40fq1gkb3v257bwyi1h5d37fyqy";
};
buildInputs = [
libxml2 libxslt readline perl gmp mpfr boost
bliss ppl singular cddlib lrs nauty
openjdk
] ++
(with perlPackages; [
XMLLibXML XMLLibXSLT XMLWriter TermReadLineGnu TermReadKey
]);
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
'';
meta = {
description = "Software for research in polyhedral geometry";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2 ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
2018-11-19 07:50:02 +00:00
homepage = "https://www.polymake.org/doku.php";
};
}