2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv
|
2019-09-19 19:19:41 +01:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, libxml2
|
|
|
|
, llvm
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
2019-09-19 19:24:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-19 19:19:41 +01:00
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
|
|
|
|
2019-12-31 20:53:24 +00:00
|
|
|
src = fetch pname "10hckfxpapfnh6y9apjiya2jpw9nmbbmh8ayijx89mrg7snjn9l6";
|
2019-09-19 19:19:41 +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 17:50:35 +01:00
|
|
|
homepage = "https://lld.llvm.org/";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.ncsa;
|
|
|
|
platforms = lib.platforms.all;
|
2019-09-19 19:19:41 +01:00
|
|
|
};
|
|
|
|
}
|