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
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
2018-01-31 14:09:24 +00:00
|
|
|
|
2018-06-28 21:58:05 +01:00
|
|
|
src = fetch "lld" "04afcfq2h7ysyqxxhyhb7ig4p0vdw7mi63kh8mffl74j0rc781p7";
|
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;
|
|
|
|
};
|
|
|
|
}
|