8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
33 lines
600 B
Nix
33 lines
600 B
Nix
{ stdenv
|
|
, fetch
|
|
, cmake
|
|
, libxml2
|
|
, llvm
|
|
, version
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lld";
|
|
inherit version;
|
|
|
|
src = fetch pname "026pwcbczcg0j5c9h7hxxrn3ki81ia9m9sfn0sy0bvzffv2xg85r";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ llvm libxml2 ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
moveToOutput include "$dev"
|
|
moveToOutput lib "$dev"
|
|
'';
|
|
|
|
meta = {
|
|
description = "The LLVM Linker";
|
|
homepage = "https://lld.llvm.org/";
|
|
license = stdenv.lib.licenses.ncsa;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|