Disable stackprotector on aarch64-darwin for PETSc

This commit is contained in:
Jack Coughlin 2022-02-22 19:14:15 -08:00
parent 6e9efe5d67
commit 1fdf67b691

View file

@ -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;