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