From 91e59727c03f37d11ec87f8a76cb07c615d15805 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sun, 27 Nov 2022 09:39:27 +0800 Subject: [PATCH] pari: unbreak on aarch64-darwin --- pkgs/applications/science/math/pari/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/science/math/pari/default.nix b/pkgs/applications/science/math/pari/default.nix index 933ad45fd519..0aa167216e8a 100644 --- a/pkgs/applications/science/math/pari/default.nix +++ b/pkgs/applications/science/math/pari/default.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { "--with-gmp=${lib.getDev gmp}" "--with-readline=${lib.getDev readline}" ] - ++ lib.optional stdenv.isDarwin "--host=x86_64-darwin" + ++ lib.optional stdenv.isDarwin "--host=${stdenv.system}" ++ lib.optional withThread "--mt=pthread"; preConfigure = '' @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { ''; postConfigure = lib.optionalString stdenv.isDarwin '' - echo 'echo x86_64-darwin' > config/arch-osname + echo 'echo ${stdenv.system}' > config/arch-osname ''; makeFlags = [ "all" ]; @@ -83,7 +83,6 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; maintainers = with maintainers; [ ertes ] ++ teams.sage.members; platforms = platforms.linux ++ platforms.darwin; - broken = stdenv.isDarwin && stdenv.isAarch64; mainProgram = "gp"; }; }