From 3e529faab543d38fd32b2e901af3a8898913cabb Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 7 Mar 2022 13:27:40 -0600 Subject: [PATCH] disable stackprotector in helix-term build --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index ddbcba5151edb..e7decfa94a68c 100644 --- a/flake.nix +++ b/flake.nix @@ -41,6 +41,12 @@ buildInputs = (prev.buildInputs or [ ]) ++ [ common.cCompiler.cc.lib ]; nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [ common.pkgs.makeWrapper ]; + hardeningDisable = + let + inherit (common.pkgs) lib stdenv; + in + lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; + postInstall = '' ${prev.postInstall or ""} if [ -f "$out/bin/hx" ]; then