about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-12-05 19:11:21 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-12-05 19:11:21 +0000
commit011d71dcb854d45a0d637617656349cdee89273c (patch)
tree7837dcf4d2a3ea8221ef30c3032faab43f8e763a
parent7768fa017806574447ae4948e29e771f1f8ce6f1 (diff)
downloadnixlib-011d71dcb854d45a0d637617656349cdee89273c.tar
nixlib-011d71dcb854d45a0d637617656349cdee89273c.tar.gz
nixlib-011d71dcb854d45a0d637617656349cdee89273c.tar.bz2
nixlib-011d71dcb854d45a0d637617656349cdee89273c.tar.lz
nixlib-011d71dcb854d45a0d637617656349cdee89273c.tar.xz
nixlib-011d71dcb854d45a0d637617656349cdee89273c.tar.zst
nixlib-011d71dcb854d45a0d637617656349cdee89273c.zip
Adding PARI/GP
svn path=/nixpkgs/trunk/; revision=24983
-rw-r--r--pkgs/applications/science/math/pari/default.nix50
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/pari/default.nix b/pkgs/applications/science/math/pari/default.nix
new file mode 100644
index 000000000000..62763ac2198a
--- /dev/null
+++ b/pkgs/applications/science/math/pari/default.nix
@@ -0,0 +1,50 @@
+x@{builderDefsPackage
+  , perl, zlib, gmp, readline
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="pari";
+    version="2.3.5";
+    name="${baseName}-${version}";
+    url="http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
+    hash="124xr2jdz2c15v45i1zvgylng44lhf23729a1mk7ci1vywdaxpa7";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doConfigure" "doMakeInstall"];
+  configureCommand="./Configure";
+      
+  meta = {
+    description = "Computer algebra system for high-performance number theory computations";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = "GPLv2+";
+    homepage = "http://pari.math.u-bordeaux.fr/";
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
+    };
+  };
+}) x
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d48064856682..8f29a5ead24b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7026,6 +7026,8 @@ let
 
   wxmaxima = callPackage ../applications/science/math/wxmaxima { };
 
+  pari = callPackage ../applications/science/math/pari {};
+
   singular = callPackage ../applications/science/math/singular {};
 
   scilab = callPackage ../applications/science/math/scilab {