2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv
|
2020-01-25 00:17:00 +01:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, libxml2
|
|
|
|
, llvm
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
|
|
|
|
2020-05-20 07:29:24 +02:00
|
|
|
src = fetch pname "0ynzi35r4fckvp6842alpd43qr810j3728yfslc66fk2mbh4j52r";
|
2020-01-25 00:17:00 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ llvm libxml2 ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput include "$dev"
|
|
|
|
moveToOutput lib "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The LLVM Linker";
|
2020-04-13 18:50:35 +02:00
|
|
|
homepage = "https://lld.llvm.org/";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.ncsa;
|
|
|
|
platforms = lib.platforms.all;
|
2020-01-25 00:17:00 +01:00
|
|
|
};
|
|
|
|
}
|