34 lines
573 B
Nix
34 lines
573 B
Nix
|
{ stdenv
|
||
|
, cmake
|
||
|
, libxml2
|
||
|
, llvm
|
||
|
|
||
|
, version
|
||
|
, src
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
inherit version src;
|
||
|
|
||
|
pname = "lld";
|
||
|
|
||
|
nativeBuildInputs = [ cmake ];
|
||
|
|
||
|
buildInputs = [ libxml2 llvm ];
|
||
|
|
||
|
outputs = [ "out" "dev" ];
|
||
|
|
||
|
postInstall = ''
|
||
|
moveToOutput include "$dev"
|
||
|
moveToOutput lib "$dev"
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
description = "ROCm fork of the LLVM Linker";
|
||
|
homepage = "https://github.com/RadeonOpenCompute/llvm-project";
|
||
|
license = licenses.ncsa;
|
||
|
maintainers = with maintainers; [ danieldk ];
|
||
|
platforms = platforms.linux;
|
||
|
};
|
||
|
}
|