2018-01-31 15:09:24 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetch
|
|
|
|
, cmake
|
2018-01-31 15:50:18 +01:00
|
|
|
, libxml2
|
2018-01-31 15:09:24 +01:00
|
|
|
, llvm
|
|
|
|
, python
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lld-${version}";
|
|
|
|
|
2018-02-14 18:03:57 +01:00
|
|
|
src = fetch "lld" "0wj8rwd4bqh32p03hksy9bngv5pwrwmlxglslm8clwlxrc2rkb1f";
|
2018-01-31 15:09:24 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-01-31 15:50:18 +01:00
|
|
|
buildInputs = [ llvm libxml2 ];
|
2018-01-31 15:09:24 +01: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;
|
|
|
|
};
|
|
|
|
}
|