2013-07-19 19:20:37 +04:00
|
|
|
{ stdenv, fetchurl, gmp, readline }:
|
2010-12-05 22:11:21 +03:00
|
|
|
|
2013-07-19 19:20:37 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-08 21:30:45 +03:00
|
|
|
version = "2.7.3";
|
2014-09-02 13:41:46 +04:00
|
|
|
name = "pari-${version}";
|
2013-07-19 19:20:37 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
|
2015-03-08 21:30:45 +03:00
|
|
|
sha256 = "02k54m7p47r54lgxqanxvf7pdrss17n8if1qwk5wx0j1px22j0rq";
|
2010-12-05 22:11:21 +03:00
|
|
|
};
|
|
|
|
|
2013-07-19 19:20:37 +04:00
|
|
|
buildInputs = [gmp readline];
|
|
|
|
|
|
|
|
configureScript = "./Configure";
|
|
|
|
configureFlags =
|
|
|
|
"--with-gmp=${gmp} " +
|
|
|
|
"--with-readline=${readline}";
|
2010-12-05 22:11:21 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Computer algebra system for high-performance number theory computations";
|
2013-07-19 19:20:37 +04:00
|
|
|
homepage = "http://pari.math.u-bordeaux.fr/";
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ertes raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-09-02 13:41:46 +04:00
|
|
|
|
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
|
|
|
|
updateWalker = true;
|
2010-12-05 22:11:21 +03:00
|
|
|
};
|
2013-07-19 19:20:37 +04:00
|
|
|
}
|