6f6c06adc1
This reflects upstream versioning change, and allows us to replace 4.0 with 4.1 (which is now a minor revision) without changing the attribute name. Thanks to @vcunat for the idea.
33 lines
555 B
Nix
33 lines
555 B
Nix
{ stdenv
|
|
, fetch
|
|
, cmake
|
|
, zlib
|
|
, llvm
|
|
, python
|
|
, version
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "lld-${version}";
|
|
|
|
src = fetch "lld" "0kmyp7iyf4f76wgy87jczkyhvzhlwfydvxgggl74z0x89xgry745";
|
|
|
|
buildInputs = [ cmake 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;
|
|
};
|
|
}
|