pari: 2.13.4 -> 2.15.1

This commit is contained in:
R. Ryantm 2022-09-23 01:31:35 +00:00 committed by Mauricio Collares
parent dad9d4f76e
commit 081289609e

View File

@ -14,7 +14,7 @@ assert withThread -> libpthreadstubs != null;
stdenv.mkDerivation rec {
pname = "pari";
version = "2.13.4";
version = "2.15.1";
src = fetchurl {
urls = [
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
# old versions are at the url below
"https://pari.math.u-bordeaux.fr/pub/pari/OLD/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz"
];
hash = "sha256-vN6ezq4VkoFDgcFpfNtwY1Z7ZQQgGxvke7WJIPO84YU=";
hash = "sha256-RUGdt3xmhb7mfkLg7LeOGe9WK+eq/GN8ikGXDy6Qnj0=";
};
buildInputs = [
@ -40,17 +40,12 @@ stdenv.mkDerivation rec {
"--with-gmp=${lib.getDev gmp}"
"--with-readline=${lib.getDev readline}"
]
++ lib.optional stdenv.isDarwin "--host=${stdenv.system}"
++ lib.optional withThread "--mt=pthread";
preConfigure = ''
export LD=$CC
'';
postConfigure = lib.optionalString stdenv.isDarwin ''
echo 'echo ${stdenv.system}' > config/arch-osname
'';
makeFlags = [ "all" ];
meta = with lib; {