From e9774b7d828ada3aed178c29a0cd97d7004908db Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Thu, 2 Jun 2022 13:09:33 -0700 Subject: [PATCH] vaapi-intel-hybrid: add -fcommon workaround --- pkgs/development/libraries/vaapi-intel-hybrid/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/vaapi-intel-hybrid/default.nix b/pkgs/development/libraries/vaapi-intel-hybrid/default.nix index e137f97698eb..ca40d4260945 100644 --- a/pkgs/development/libraries/vaapi-intel-hybrid/default.nix +++ b/pkgs/development/libraries/vaapi-intel-hybrid/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "1.0.2"; src = fetchFromGitHub { - owner = "01org"; + owner = "intel"; repo = "intel-hybrid-driver"; rev = version; sha256 = "sha256-uYX7RoU1XVzcC2ea3z/VBjmT47xmzK67Y4LaiFXyJZ8="; @@ -25,6 +25,9 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # Workaround build failure on -fno-common toolchains like upstream gcc-10. + NIX_CFLAGS_COMPILE = "-fcommon"; + configureFlags = [ "--enable-drm" "--enable-x11"