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 ]; buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
configureScript = "./Configure"; configureScript = "./Configure";
configureFlags = configureFlags = [
"--mt=pthread" + "--mt=pthread"
"--with-gmp=${gmp.dev} " + "--with-gmp=${gmp.dev}"
"--with-readline=${readline.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; { meta = with stdenv.lib; {
description = "Computer algebra system for high-performance number theory computations"; 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"; downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ ertes raskin AndersonTorres ]; maintainers = with maintainers; [ ertes raskin AndersonTorres ];
platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin;
updateWalker = true; updateWalker = true;
}; };
} }