nixpkgs/pkgs/development/compilers/llvm/5/lld.nix

32 lines
566 B
Nix
Raw Normal View History

2017-09-16 01:38:38 +01:00
{ stdenv
, fetch
, cmake
, llvm
, version
}:
stdenv.mkDerivation {
name = "lld-${version}";
2018-05-04 16:54:06 +01:00
src = fetch "lld" "1ah75rjly6747jk1zbwca3z0svr9b09ylgxd4x9ns721xir6sia6";
2017-09-16 01:38:38 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = [ llvm ];
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;
};
}