From 5761727e21808f055606f976b6ce6c675b92a39d Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Fri, 11 Jan 2019 04:21:03 +0100 Subject: llvm: add patch to fix build with gcc8 --- pkgs/development/compilers/llvm/5/llvm.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/development/compilers/llvm') diff --git a/pkgs/development/compilers/llvm/5/llvm.nix b/pkgs/development/compilers/llvm/5/llvm.nix index d6839f0f2909..b742e6863a5e 100644 --- a/pkgs/development/compilers/llvm/5/llvm.nix +++ b/pkgs/development/compilers/llvm/5/llvm.nix @@ -1,5 +1,6 @@ { stdenv , fetch +, fetchpatch , cmake , python , libffi @@ -43,6 +44,13 @@ stdenv.mkDerivation (rec { propagatedBuildInputs = [ ncurses zlib ]; + patches = [ + (fetchpatch { + url = "https://bugzilla.redhat.com/attachment.cgi?id=1389687"; + name = "llvm-gcc8-type-mismatch.patch"; + sha256 = "0ga2123aclq3x9w72d0rm0az12m8c1i4r1106vh701hf4cghgbch"; + }) + ]; postPatch = stdenv.lib.optionalString stdenv.isDarwin '' substituteInPlace cmake/modules/AddLLVM.cmake \ --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \ -- cgit 1.4.1