pari: enable darwin build

This commit is contained in:
Daiderd Jordan 2017-10-30 09:52:29 +01:00 committed by Domen Kožar
parent 9ec640ec70
commit b93df24078

View File

@ -14,12 +14,21 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
configureScript = "./Configure";
configureFlags =
"--mt=pthread" +
"--with-gmp=${gmp.dev} " +
"--with-readline=${readline.dev}";
configureFlags = [
"--mt=pthread"
"--with-gmp=${gmp.dev}"
"--with-readline=${readline.dev}"
] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin";
makeFlags = "all";
preConfigure = ''
export LD=$CC
'';
postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
echo 'echo x86_64-darwin' > config/arch-osname
'';
makeFlags = [ "all" ];
meta = with stdenv.lib; {
description = "Computer algebra system for high-performance number theory computations";
@ -50,7 +59,7 @@ stdenv.mkDerivation rec {
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ertes raskin AndersonTorres ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
updateWalker = true;
};
}