2015-02-03 21:58:32 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, zlib
|
|
|
|
, ncurses
|
|
|
|
, swig
|
|
|
|
, which
|
|
|
|
, libedit
|
|
|
|
, llvm
|
|
|
|
, clang
|
|
|
|
, python
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lldb-${version}";
|
|
|
|
|
2015-08-17 10:02:17 +00:00
|
|
|
src = fetch "lldb" "0ffi9jn4k3yd0hvxs1v4n710x8siq21lb49v3351d7j5qinrpgi7";
|
2015-02-03 21:58:32 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's|/usr/bin/env||' \
|
|
|
|
scripts/Python/finish-swig-Python-LLDB.sh \
|
|
|
|
scripts/Python/build-swig-Python.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ cmake python which swig ncurses zlib libedit ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_CXX_FLAGS=-std=c++11"
|
|
|
|
"-DLLDB_PATH_TO_LLVM_BUILD=${llvm}"
|
|
|
|
"-DLLDB_PATH_TO_CLANG_BUILD=${clang}"
|
2016-11-28 17:55:04 +00:00
|
|
|
"-DLLDB_DISABLE_LIBEDIT=1" # https://llvm.org/bugs/show_bug.cgi?id=28898
|
2015-02-03 21:58:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A next-generation high-performance debugger";
|
|
|
|
homepage = http://llvm.org/;
|
2017-02-11 22:13:29 +00:00
|
|
|
license = stdenv.lib.licenses.ncsa;
|
2015-02-03 21:58:32 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2015-03-06 21:16:20 +00:00
|
|
|
broken = true;
|
2015-02-03 21:58:32 +00:00
|
|
|
};
|
|
|
|
}
|