forked from mirrors/nixpkgs
947c26972b
* All projects are available under NCSA license, other than dragonegg. * "Runtime" projects are dual-licensed under both NCSA and MIT: libc++, libc++abi, compiler-rt * I don't mention MIT for compiler-rt as we only build it as part of LLVM.
44 lines
910 B
Nix
44 lines
910 B
Nix
{ stdenv
|
|
, fetch
|
|
, cmake
|
|
, zlib
|
|
, ncurses
|
|
, swig
|
|
, which
|
|
, libedit
|
|
, llvm
|
|
, clang
|
|
, python2
|
|
, version
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "lldb-${version}";
|
|
|
|
src = fetch "lldb" "0h8cmjrhjhigk7k2qll1pcf6jfgmbdzkzfz2i048pkfg851s0x4g";
|
|
|
|
patchPhase = ''
|
|
sed -i 's|/usr/bin/env||' \
|
|
scripts/Python/finish-swig-Python-LLDB.sh \
|
|
scripts/Python/build-swig-Python.sh
|
|
'';
|
|
|
|
buildInputs = [ cmake python2 which swig ncurses zlib libedit ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_CXX_FLAGS=-std=c++11"
|
|
"-DLLDB_PATH_TO_LLVM_BUILD=${llvm}"
|
|
"-DLLDB_PATH_TO_CLANG_BUILD=${clang}"
|
|
"-DLLDB_DISABLE_LIBEDIT=1" # https://llvm.org/bugs/show_bug.cgi?id=28898
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A next-generation high-performance debugger";
|
|
homepage = http://llvm.org/;
|
|
license = stdenv.lib.licenses.ncsa;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|