2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, libxml2
|
|
|
|
, llvm
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetch pname "1kk61i7z5bi9i11rzsd2b388d42if1c7a45zkaa4mk0yps67hyh1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ llvm libxml2 ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput include "$dev"
|
|
|
|
moveToOutput lib "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The LLVM Linker";
|
|
|
|
homepage = "https://lld.llvm.org/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.ncsa;
|
|
|
|
platforms = lib.platforms.all;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|