pari: Updated to 2.5.4, fixed GMP and readline support.
This commit is contained in:
parent
fc8d1341f6
commit
2519a86942
|
@ -1,50 +1,25 @@
|
|||
x@{builderDefsPackage
|
||||
, perl, zlib, gmp, readline
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
{ stdenv, fetchurl, gmp, readline }:
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
baseName="pari";
|
||||
version="2.5.0";
|
||||
name="${baseName}-${version}";
|
||||
url="http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
||||
hash="18ipxj4hzj7s3fqz878fiypkzrkbjj8wvbygz9j8c3ya06q27jax";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pari-2.5.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
||||
sha256 = "0gpsj5n8d1gyl7nq2y915sscs3d334ryrv8qgjdwqf3cr95f2dwz";
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
buildInputs = [gmp readline];
|
||||
|
||||
configureScript = "./Configure";
|
||||
configureFlags =
|
||||
"--with-gmp=${gmp} " +
|
||||
"--with-readline=${readline}";
|
||||
|
||||
/* 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/";
|
||||
homepage = "http://pari.math.u-bordeaux.fr/";
|
||||
license = "GPLv2+";
|
||||
maintainers = with stdenv.lib.maintainers; [ertes raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue