nixpkgs-suyu/pkgs/development/compilers/llvm/8/lld.nix

34 lines
593 B
Nix
Raw Normal View History

2019-02-28 19:01:31 +01:00
{ stdenv
, fetch
, cmake
, libxml2
, llvm
, version
}:
stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "lld";
inherit version;
2019-02-28 19:01:31 +01:00
src = fetch "lld" "121xhxrlvwy3k5nf6p1wv31whxlb635ssfkci8z93mwv4ja1xflz";
2019-02-28 19:01:31 +01:00
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;
};
}