From 4536186f188745d878f31bc2fcdaabfc085957c4 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Thu, 10 Feb 2022 14:00:44 -0300 Subject: [PATCH] R: disable stack protector on aarch64-darwin --- pkgs/applications/science/math/R/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index d08078c356e1a..4bd237f878342 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -94,6 +94,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # 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" ]; + setupHook = ./setup-hook.sh; meta = with lib; {