2016-11-23 01:47:43 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, gmp, readline, libX11, libpthreadstubs, tex, perl }:
|
2010-12-05 19:11:21 +00:00
|
|
|
|
2013-07-19 16:20:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-11-23 01:47:43 +00:00
|
|
|
|
2014-09-02 10:41:46 +01:00
|
|
|
name = "pari-${version}";
|
2016-12-08 12:43:01 +00:00
|
|
|
version = "2.9.1";
|
2013-07-19 16:20:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
2016-12-08 12:43:01 +00:00
|
|
|
sha256 = "0rq7wz9df1xs4acdzzb5dapx8vs6m5py39n2wynw2qv4d2b0ylfw";
|
2010-12-05 19:11:21 +00:00
|
|
|
};
|
|
|
|
|
2016-11-23 01:47:43 +00:00
|
|
|
buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
|
2013-07-19 16:20:37 +01:00
|
|
|
|
|
|
|
configureScript = "./Configure";
|
|
|
|
configureFlags =
|
2016-11-23 01:47:43 +00:00
|
|
|
"--mt=pthread" +
|
2016-04-16 17:58:41 +01:00
|
|
|
"--with-gmp=${gmp.dev} " +
|
2016-04-16 18:46:17 +01:00
|
|
|
"--with-readline=${readline.dev}";
|
2010-12-05 19:11:21 +00:00
|
|
|
|
2016-11-23 01:47:43 +00:00
|
|
|
makeFlags = "all";
|
|
|
|
|
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";
|
2016-11-23 01:47:43 +00:00
|
|
|
longDescription = ''
|
|
|
|
PARI/GP is a widely used computer algebra system designed for fast
|
|
|
|
computations in number theory (factorizations, algebraic number theory,
|
|
|
|
elliptic curves...), but also contains a large number of other useful
|
|
|
|
functions to compute with mathematical entities such as matrices,
|
|
|
|
polynomials, power series, algebraic numbers etc., and a lot of
|
|
|
|
transcendental functions. PARI is also available as a C library to allow
|
|
|
|
for faster computations.
|
|
|
|
|
|
|
|
Originally developed by Henri Cohen and his co-workers (Université
|
|
|
|
Bordeaux I, France), PARI is now under the GPL and maintained by Karim
|
|
|
|
Belabas with the help of many volunteer contributors.
|
|
|
|
|
|
|
|
- PARI is a C library, allowing fast computations.
|
|
|
|
- gp is an easy-to-use interactive shell giving access to the
|
|
|
|
PARI functions.
|
|
|
|
- GP is the name of gp's scripting language.
|
|
|
|
- gp2c, the GP-to-C compiler, combines the best of both worlds
|
|
|
|
by compiling GP scripts to the C language and transparently loading
|
|
|
|
the resulting functions into gp. (gp2c-compiled scripts will typically
|
|
|
|
run 3 or 4 times faster.) gp2c currently only understands a subset
|
|
|
|
of the GP language.
|
|
|
|
'';
|
2013-07-19 16:20:37 +01:00
|
|
|
homepage = "http://pari.math.u-bordeaux.fr/";
|
2016-11-23 01:47:43 +00:00
|
|
|
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-11-23 01:47:43 +00:00
|
|
|
maintainers = with maintainers; [ ertes raskin AndersonTorres ];
|
2015-05-27 20:56:04 +01:00
|
|
|
platforms = platforms.linux;
|
2014-09-02 10:41:46 +01:00
|
|
|
updateWalker = true;
|
2010-12-05 19:11:21 +00:00
|
|
|
};
|
2013-07-19 16:20:37 +01:00
|
|
|
}
|