about summary refs log tree commit diff
path: root/pkgs/applications/science/math/pari/default.nix
diff options
context:
space:
mode:
authorMauricio Collares <mauricio@collares.org>2022-11-27 15:15:19 -0300
committerGitHub <noreply@github.com>2022-11-27 15:15:19 -0300
commitdad9d4f76e2de2d15d22dcf40307cf844e8c9d29 (patch)
tree6609e8e8d78fcea08c41894b2bd5aa59aabe41b8 /pkgs/applications/science/math/pari/default.nix
parent6ff09ebe045ba5c048fa30ed1aa42c928dacb11f (diff)
parent91e59727c03f37d11ec87f8a76cb07c615d15805 (diff)
Merge pull request #203170 from jiegec/pari
pari: unbreak on aarch64-darwin
Diffstat (limited to 'pkgs/applications/science/math/pari/default.nix')
-rw-r--r--pkgs/applications/science/math/pari/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/applications/science/math/pari/default.nix b/pkgs/applications/science/math/pari/default.nix
index 933ad45fd5197..0aa167216e8ae 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";
   };
 }