diff --git a/pkgs/development/libraries/liboil/default.nix b/pkgs/development/libraries/liboil/default.nix index 66d07b547c5a..43b1f3470934 100644 --- a/pkgs/development/libraries/liboil/default.nix +++ b/pkgs/development/libraries/liboil/default.nix @@ -16,6 +16,9 @@ stdenv.mkDerivation rec { # errors configureFlags = stdenv.lib.optional stdenv.isDarwin "--build=x86_64"; + # fixes a cast in inline asm: easier than patching + buildFlags = stdenv.lib.optional stdenv.isDarwin "CFLAGS=-fheinous-gnu-extensions"; + meta = with stdenv.lib; { description = "A library of simple functions that are optimized for various CPUs"; homepage = http://liboil.freedesktop.org;