git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20672 from AndersonTorres/pari

pari/gp: 2.7.6 -> 2.9.0

commitfcc5a4d3b870915c65bcbb6338f87c6a740a38ab authorMichael Raskin <7c6f434c@mail.ru> dateSat 26 Nov 2016, 13:34 (10 years ago) parent2bf9413d395439
3 files changed+64−9
pkgs/applications/science/math/pari/default.nix+34−8 pkgs/applications/science/math/pari/gp2c.nix+28 pkgs/top-level/all-packages.nix+2−1
pkgs/applications/science/math/pari/default.nix+34−8
@@ -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}
pkgs/applications/science/math/pari/gp2c.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchurl
2+, pari, perl }:
3+
4+stdenv.mkDerivation rec {
5+
6+ name = "gp2c-${version}";
7+ version = "0.0.10";
8+
9+ src = fetchurl {
10+ url = "http://pari.math.u-bordeaux.fr/pub/pari/GP2C/${name}.tar.gz";
11+ sha256 = "1xhpz5p81iw261ay1kip283ggr0ir8ydz8qx3v24z8jfms1r3y70";
12+ };
13+
14+ buildInputs = [ pari perl ];
15+
16+ configureFlags = [
17+ "--with-paricfg=${pari}/lib/pari/pari.cfg"
18+ "--with-perl=${perl}/bin/perl" ];
19+
20+ meta = with stdenv.lib; {
21+ description = "A compiler to translate GP scripts to PARI programs";
22+ homepage = "http://pari.math.u-bordeaux.fr/";
23+ downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
24+ license = licenses.gpl2Plus;
25+ maintainers = with maintainers; [ AndersonTorres ];
26+ };
27+}
28+# TODO: add it as "source file" for default package
pkgs/top-level/all-packages.nix+2−1
@@ -16835,7 +16835,8 @@ in
1683516835
1683616836 wxmaxima = callPackage ../applications/science/math/wxmaxima { wxGTK = wxGTK30; };
1683716837
16838− pari = callPackage ../applications/science/math/pari {};
16838+ pari = callPackage ../applications/science/math/pari { tex = texlive.combined.scheme-basic; };
16839+ gp2c = callPackage ../applications/science/math/pari/gp2c.nix { };
1683916840 pari-unstable = callPackage ../applications/science/math/pari/unstable.nix {};
1684016841
1684116842 ratpoints = callPackage ../applications/science/math/ratpoints {};