summary refs log tree commit diff
path: root/pkgs/applications/video/handbrake/default.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2020-05-20 12:27:57 +0800
committerPeter Hoeg <peter@hoeg.com>2020-05-20 12:27:57 +0800
commit423296fc354341ba1d81239f5d5757265bec0619 (patch)
treec4ed662a848b05886bad9952c6eb5fd35fe533ed /pkgs/applications/video/handbrake/default.nix
parentc729ec59a9d7ef93eb556c6132f7067a0cc0f372 (diff)
downloadnixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar.gz
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar.bz2
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar.lz
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar.xz
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.tar.zst
nixpkgs-423296fc354341ba1d81239f5d5757265bec0619.zip
handbrake: do not harden on arm
Diffstat (limited to 'pkgs/applications/video/handbrake/default.nix')
-rw-r--r--pkgs/applications/video/handbrake/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix
index 3966ee6dd3c..bbbb60bdf51 100644
--- a/pkgs/applications/video/handbrake/default.nix
+++ b/pkgs/applications/video/handbrake/default.nix
@@ -108,13 +108,12 @@ _EOF
   enableParallelBuilding = true;
 
   configureFlags = [
-    "--harden" # enable buffer overflow protection
     "--disable-df-fetch"
     "--disable-df-verify"
     (if useGtk          then "--disable-gtk-update-checks" else "--disable-gtk")
     (if useFdk          then "--enable-fdk-aac"            else "")
     (if stdenv.isDarwin then "--disable-xcode"             else "")
-  ];
+  ] ++ lib.optional (stdenv.isx86_32 || stdenv.isx86_64) "--harden";
 
   # NOTE: 2018-12-27: Check NixOS HandBrake test if changing
   NIX_LDFLAGS = [