From af408e320b0acdbc15c5ec5fb44d66b6718ccc1c Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 12 Apr 2025 00:52:21 +0100 Subject: [PATCH] ffmpeg: disable pacret & shadowstack if withCudaLLVM for the same reason as with zerocallusedregs --- pkgs/development/libraries/ffmpeg/generic.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 83c324ab38a1..4aa26718c52b 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -1012,6 +1012,10 @@ stdenv.mkDerivation ( } // lib.optionalAttrs withCudaLLVM { # remove once https://github.com/NixOS/nixpkgs/issues/318674 is addressed properly - hardeningDisable = [ "zerocallusedregs" ]; + hardeningDisable = [ + "pacret" + "shadowstack" + "zerocallusedregs" + ]; } )