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
|
{ stdenv, fetchurl, gmp, readline }:
|
||||||
, perl, zlib, gmp, readline
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "pari-2.5.4";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="pari";
|
src = fetchurl {
|
||||||
version="2.5.0";
|
url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
||||||
name="${baseName}-${version}";
|
sha256 = "0gpsj5n8d1gyl7nq2y915sscs3d334ryrv8qgjdwqf3cr95f2dwz";
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [gmp readline];
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
configureScript = "./Configure";
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
configureFlags =
|
||||||
configureCommand="./Configure";
|
"--with-gmp=${gmp} " +
|
||||||
|
"--with-readline=${readline}";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Computer algebra system for high-performance number theory computations";
|
description = "Computer algebra system for high-performance number theory computations";
|
||||||
maintainers = with a.lib.maintainers;
|
homepage = "http://pari.math.u-bordeaux.fr/";
|
||||||
[
|
license = "GPLv2+";
|
||||||
raskin
|
maintainers = with stdenv.lib.maintainers; [ertes raskin];
|
||||||
];
|
platforms = stdenv.lib.platforms.linux;
|
||||||
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
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user