diff options
author | Connor Baker <ConnorBaker01@Gmail.com> | 2022-03-25 11:35:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 11:35:37 -0400 |
commit | 78a439e5143ddf9e1cb0e485ea05e74f61635b40 (patch) | |
tree | c2652497301635bc5c56c9303db5dd844338c9e4 /pkgs/development/r-modules | |
parent | 0e0bb200ff2028432d56f710213873f7dd3d345b (diff) | |
download | nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar.gz nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar.bz2 nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar.lz nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar.xz nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.tar.zst nixpkgs-78a439e5143ddf9e1cb0e485ea05e74f61635b40.zip |
rPackages: Disable stackprotector on aarch64-darwin
Some derivations, like `rPackages.KernSmooth`, fail to build on `aarch64-darwin` because `stackprotector` is enabled. This is similar to the fix required to get R itself working on `aarch64-darwin`: https://github.com/NixOS/nixpkgs/pull/158992.
Diffstat (limited to 'pkgs/development/r-modules')
-rw-r--r-- | pkgs/development/r-modules/generic-builder.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/r-modules/generic-builder.nix b/pkgs/development/r-modules/generic-builder.nix index 880fff44ed6..beb669d9893 100644 --- a/pkgs/development/r-modules/generic-builder.nix +++ b/pkgs/development/r-modules/generic-builder.nix @@ -10,6 +10,8 @@ stdenv.mkDerivation ({ NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; + hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; + configurePhase = '' runHook preConfigure export R_LIBS_SITE="$R_LIBS_SITE''${R_LIBS_SITE:+:}$out/library" |