21b0162383
Fetch from github release page, as that's where https://releases.llvm.org/9.0.1 redirects.
34 lines
597 B
Nix
34 lines
597 B
Nix
{ stdenv
|
|
, fetch
|
|
, cmake
|
|
, libxml2
|
|
, llvm
|
|
, version
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lld";
|
|
inherit version;
|
|
|
|
src = fetch pname "10hckfxpapfnh6y9apjiya2jpw9nmbbmh8ayijx89mrg7snjn9l6";
|
|
|
|
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;
|
|
};
|
|
}
|