From e9c1d81bf340242b661c8387876aa596f1f00552 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Tue, 19 Jul 2022 14:50:41 +0800 Subject: [PATCH] arpack: unbreak on aarch64-darwin Disable stackprotector on aarch64-darwin. Fix #140041. --- pkgs/development/libraries/science/math/arpack/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/science/math/arpack/default.nix b/pkgs/development/libraries/science/math/arpack/default.nix index 88336f21ed27..078bc446aee8 100644 --- a/pkgs/development/libraries/science/math/arpack/default.nix +++ b/pkgs/development/libraries/science/math/arpack/default.nix @@ -49,6 +49,10 @@ stdenv.mkDerivation rec { install_name_tool -change libblas.dylib ${blas}/lib/libblas.dylib $out/lib/libarpack.dylib ''; + # disable stackprotector on aarch64-darwin for now + # https://github.com/NixOS/nixpkgs/issues/127608 + hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; + meta = { homepage = "https://github.com/opencollab/arpack-ng"; description = ''