From 7ea342708afd4dc4a48064d1b6067b8584d326e8 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 19 Feb 2017 12:11:48 -0600 Subject: [PATCH] lldb-4.0rc2: Try to fix but ultimately disable on Darwin. Currently it's failing due to needing Foundation.h, but LLDB on Nix-Darwin is a bit sketchy anyway due to code-signing requirements. --- pkgs/development/compilers/llvm/4.0/lldb.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/llvm/4.0/lldb.nix b/pkgs/development/compilers/llvm/4.0/lldb.nix index 7bca695fafc1..f37e6fdfafc2 100644 --- a/pkgs/development/compilers/llvm/4.0/lldb.nix +++ b/pkgs/development/compilers/llvm/4.0/lldb.nix @@ -6,10 +6,12 @@ , swig , which , libedit +, libxml2 , llvm , clang-unwrapped , python , version +, darwin }: stdenv.mkDerivation { @@ -27,21 +29,22 @@ stdenv.mkDerivation { cmake/modules/LLDBStandalone.cmake ''; - buildInputs = [ cmake python which swig ncurses zlib libedit llvm ]; + buildInputs = [ cmake python which swig ncurses zlib libedit libxml2 llvm ] + ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc ]; CXXFLAGS = "-fno-rtti"; hardeningDisable = [ "format" ]; cmakeFlags = [ - "-DLLDB_DISABLE_LIBEDIT=1" + "-DLLDB_DISABLE_LIBEDIT=ON" ]; enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { description = "A next-generation high-performance debugger"; homepage = http://llvm.org/; - license = stdenv.lib.licenses.ncsa; - platforms = stdenv.lib.platforms.all; + license = licenses.ncsa; + platforms = platforms.allBut platforms.darwin; }; }