2018-01-31 14:09:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetch
|
|
|
|
, cmake
|
2018-01-31 14:50:18 +00:00
|
|
|
, libxml2
|
2018-01-31 14:09:24 +00:00
|
|
|
, llvm
|
|
|
|
, python
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lld-${version}";
|
|
|
|
|
2018-03-08 16:01:35 +00:00
|
|
|
src = fetch "lld" "02qfkjkjq0snmf8dw9c255xkh8dg06ndny1x470300pk7j1lm33b";
|
2018-01-31 14:09:24 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-01-31 14:50:18 +00:00
|
|
|
buildInputs = [ llvm libxml2 ];
|
2018-01-31 14:09:24 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput include "$dev"
|
|
|
|
moveToOutput lib "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The LLVM Linker";
|
|
|
|
homepage = http://lld.llvm.org/;
|
|
|
|
license = stdenv.lib.licenses.ncsa;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|