75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
31 lines
557 B
Nix
31 lines
557 B
Nix
{ lib, stdenv
|
|
, fetch
|
|
, cmake
|
|
, libxml2
|
|
, llvm
|
|
, version
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lld";
|
|
inherit version;
|
|
|
|
src = fetch pname "1kk61i7z5bi9i11rzsd2b388d42if1c7a45zkaa4mk0yps67hyh1";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ llvm libxml2 ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
postInstall = ''
|
|
moveToOutput include "$dev"
|
|
moveToOutput lib "$dev"
|
|
'';
|
|
|
|
meta = {
|
|
description = "The LLVM Linker";
|
|
homepage = "https://lld.llvm.org/";
|
|
license = lib.licenses.ncsa;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|