2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv
|
2017-09-16 01:38:38 +01:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, llvm
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "lld";
|
|
|
|
inherit version;
|
2017-09-16 01:38:38 +01:00
|
|
|
|
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" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput include "$dev"
|
|
|
|
moveToOutput lib "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The LLVM Linker";
|
2020-04-13 17:50:35 +01:00
|
|
|
homepage = "https://lld.llvm.org/";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.ncsa;
|
|
|
|
platforms = lib.platforms.all;
|
2019-04-25 01:11:07 +01:00
|
|
|
badPlatforms = [ "x86_64-darwin" ];
|
2017-09-16 01:38:38 +01:00
|
|
|
};
|
|
|
|
}
|