@@ -1,30 +1,56 @@
1−{ stdenv, fetchurl, gmp, readline }:
1+{ stdenv, fetchurl
2+, gmp, readline, libX11, libpthreadstubs, tex, perl }:
23
34stdenv.mkDerivation rec {
4− version = "2.7.6";
5+
56 name = "pari-${version}";
7+ version = "2.9.0";
68
79 src = fetchurl {
810 url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
9− sha256 = "04dqi697czd8mmw8aiwzrkgbvkjassqagg6lfy3lkf1k5qi9g9rr";
11+ sha256 = "0rljznrvjgy71n4hlpgx1l1yy1qx52mly68k3c05ds21mlvzg92a";
1012 };
1113
12− buildInputs = [gmp readline];
14+ buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
1315
1416 configureScript = "./Configure";
1517 configureFlags =
18+ "--mt=pthread" +
1619 "--with-gmp=${gmp.dev} " +
1720 "--with-readline=${readline.dev}";
1821
22+ makeFlags = "all";
23+
1924 meta = with stdenv.lib; {
2025 description = "Computer algebra system for high-performance number theory computations";
26+ longDescription = ''
27+ PARI/GP is a widely used computer algebra system designed for fast
28+ computations in number theory (factorizations, algebraic number theory,
29+ elliptic curves...), but also contains a large number of other useful
30+ functions to compute with mathematical entities such as matrices,
31+ polynomials, power series, algebraic numbers etc., and a lot of
32+ transcendental functions. PARI is also available as a C library to allow
33+ for faster computations.
34+
35+ Originally developed by Henri Cohen and his co-workers (Université
36+ Bordeaux I, France), PARI is now under the GPL and maintained by Karim
37+ Belabas with the help of many volunteer contributors.
38+
39+ - PARI is a C library, allowing fast computations.
40+ - gp is an easy-to-use interactive shell giving access to the
41+ PARI functions.
42+ - GP is the name of gp's scripting language.
43+ - gp2c, the GP-to-C compiler, combines the best of both worlds
44+ by compiling GP scripts to the C language and transparently loading
45+ the resulting functions into gp. (gp2c-compiled scripts will typically
46+ run 3 or 4 times faster.) gp2c currently only understands a subset
47+ of the GP language.
48+ '';
2149 homepage = "http://pari.math.u-bordeaux.fr/";
50+ downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
2251 license = licenses.gpl2Plus;
23− maintainers = with maintainers; [ ertes raskin ];
52+ maintainers = with maintainers; [ ertes raskin AndersonTorres ];
2453 platforms = platforms.linux;
25−
26− inherit version;
27− downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
2854 updateWalker = true;
2955 };
3056}