34 lines
582 B
Nix
34 lines
582 B
Nix
|
{ stdenv
|
||
|
, fetch
|
||
|
, cmake
|
||
|
, zlib
|
||
|
, llvm
|
||
|
, python
|
||
|
, version
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "lld-${version}";
|
||
|
|
||
|
src = fetch "lld" "15rqsmfw0jlsri7hszbs8l0j7v1030cy9xvvdb245397llh7k6ir";
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|