2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv
|
2018-09-18 21:19:58 +02:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, libxml2
|
|
|
|
, llvm
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
2018-09-18 21:19:58 +02:00
|
|
|
|
2019-04-23 07:30:45 +02:00
|
|
|
src = fetch "lld" "0rsqb7zcnij5r5ipfhr129j7skr5n9pyr388kjpqwh091952f3x1";
|
2018-09-18 21:19:58 +02: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;
|
2018-09-18 21:19:58 +02:00
|
|
|
};
|
|
|
|
}
|