From 1fdf67b6917e64f95c7c42d242ba730a57a5ddb8 Mon Sep 17 00:00:00 2001 From: Jack Coughlin Date: Tue, 22 Feb 2022 19:14:15 -0800 Subject: [PATCH] Disable stackprotector on aarch64-darwin for PETSc --- pkgs/development/libraries/science/math/petsc/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/science/math/petsc/default.nix b/pkgs/development/libraries/science/math/petsc/default.nix index 4a4208e1cbe4..3eb0fa66dfaa 100644 --- a/pkgs/development/libraries/science/math/petsc/default.nix +++ b/pkgs/development/libraries/science/math/petsc/default.nix @@ -67,6 +67,11 @@ stdenv.mkDerivation rec { configureScript = "python ./configure"; + # disable stackprotector on aarch64-darwin for now + # https://github.com/NixOS/nixpkgs/issues/158730 + # see https://github.com/NixOS/nixpkgs/issues/127608 for a similar issue + hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; + enableParallelBuilding = true; doCheck = stdenv.hostPlatform == stdenv.buildPlatform;