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.
30 lines
759 B
Nix
30 lines
759 B
Nix
{ stdenv, fetch, cmake, llvm, ncurses, zlib, python, version }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "lld-${version}";
|
|
|
|
src = fetch "lld" "1hpqawg1sc8mdqxqaxqmlzbrn69w1pkj8rxhjgqgmwra6c0xky89";
|
|
|
|
preUnpack = ''
|
|
# !!! Hopefully won't be needed for 3.5
|
|
unpackFile ${llvm.src}
|
|
export cmakeFlags="$cmakeFlags -DLLD_PATH_TO_LLVM_SOURCE="`ls -d $PWD/llvm-*`
|
|
'';
|
|
|
|
buildInputs = [ cmake ncurses zlib python ];
|
|
|
|
cmakeFlags = [
|
|
"-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.ncsa;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|