mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
34 lines
593 B
Nix
34 lines
593 B
Nix
|
{ stdenv
|
||
|
, fetch
|
||
|
, cmake
|
||
|
, libxml2
|
||
|
, llvm
|
||
|
, version
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "lld";
|
||
|
inherit version;
|
||
|
|
||
|
src = fetch "lld" "121xhxrlvwy3k5nf6p1wv31whxlb635ssfkci8z93mwv4ja1xflz";
|
||
|
|
||
|
nativeBuildInputs = [ cmake ];
|
||
|
buildInputs = [ llvm libxml2 ];
|
||
|
|
||
|
outputs = [ "out" "dev" ];
|
||
|
|
||
|
enableParallelBuilding = true;
|
||
|
|
||
|
postInstall = ''
|
||
|
moveToOutput include "$dev"
|
||
|
moveToOutput lib "$dev"
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "The LLVM Linker";
|
||
|
homepage = http://lld.llvm.org/;
|
||
|
license = stdenv.lib.licenses.ncsa;
|
||
|
platforms = stdenv.lib.platforms.all;
|
||
|
};
|
||
|
}
|