2013-07-19 16:20:37 +01:00
|
|
|
{ stdenv, fetchurl, gmp, readline }:
|
2010-12-05 19:11:21 +00:00
|
|
|
|
2013-07-19 16:20:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-07-04 19:57:56 +01:00
|
|
|
version = "2.7.4";
|
2014-09-02 10:41:46 +01:00
|
|
|
name = "pari-${version}";
|
2013-07-19 16:20:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
2015-07-04 19:57:56 +01:00
|
|
|
sha256 = "0k1qqagfl6zn7gvwmsqffj6g9yrzqvszwh2mblhmxpjlw1pigfh8";
|
2010-12-05 19:11:21 +00:00
|
|
|
};
|
|
|
|
|
2013-07-19 16:20:37 +01:00
|
|
|
buildInputs = [gmp readline];
|
|
|
|
|
|
|
|
configureScript = "./Configure";
|
|
|
|
configureFlags =
|
|
|
|
"--with-gmp=${gmp} " +
|
|
|
|
"--with-readline=${readline}";
|
2010-12-05 19:11:21 +00:00
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-05 19:11:21 +00:00
|
|
|
description = "Computer algebra system for high-performance number theory computations";
|
2013-07-19 16:20:37 +01:00
|
|
|
homepage = "http://pari.math.u-bordeaux.fr/";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2015-05-27 20:56:04 +01:00
|
|
|
maintainers = with maintainers; [ ertes raskin ];
|
|
|
|
platforms = platforms.linux;
|
2014-09-02 10:41:46 +01:00
|
|
|
|
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
|
|
|
|
updateWalker = true;
|
2010-12-05 19:11:21 +00:00
|
|
|
};
|
2013-07-19 16:20:37 +01:00
|
|
|
}
|