2014-01-21 01:19:53 +00:00
|
|
|
{ stdenv, fetch, cmake, llvm, ncurses, zlib, python, version }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lld-${version}";
|
|
|
|
|
|
|
|
src = fetch "lld" "1sd4scqynryfrmcc4h0ljgwn2dgjmbbmf38z50ya6l0janpd2nxz";
|
|
|
|
|
|
|
|
preUnpack = ''
|
|
|
|
# !!! Hopefully won't be needed for 3.5
|
|
|
|
unpackFile ${llvm.src}
|
2014-05-16 17:27:05 +01:00
|
|
|
export cmakeFlags="$cmakeFlags -DLLD_PATH_TO_LLVM_SOURCE="`ls -d $PWD/llvm-*`
|
2014-01-21 01:19:53 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ cmake ncurses zlib python ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DCMAKE_CXX_FLAGS=-std=c++11"
|
|
|
|
"-DLLD_PATH_TO_LLVM_BUILD=${llvm}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of modular code for creating linker tools";
|
|
|
|
homepage = http://llvm.org/;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|