From 597f94db3e9701d25838b06c84d5b4a43a3426a8 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 2 Oct 2020 18:20:05 -0700 Subject: [PATCH] x265: fix build on powerpc Disable Altivec instructions on ppc when building 10/12bit. See https://salsa.debian.org/multimedia-team/x265/-/blob/6f06b3f6/debian/rules#L34 --- pkgs/development/libraries/x265/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/x265/default.nix b/pkgs/development/libraries/x265/default.nix index 48ed6cf46802..34f5d158592e 100644 --- a/pkgs/development/libraries/x265/default.nix +++ b/pkgs/development/libraries/x265/default.nix @@ -21,6 +21,8 @@ let (mkFlag custatsSupport "DETAILED_CU_STATS") (mkFlag unittestsSupport "ENABLE_TESTS") (mkFlag werrorSupport "WARNINGS_AS_ERRORS") + ] ++ stdenv.lib.optionals stdenv.hostPlatform.isPower [ + "-DENABLE_ALTIVEC=OFF" ]; version = "3.2";