2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-07-18 16:06:22 +00:00
|
|
|
, 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"
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
# Fix lld binary path for CMake.
|
|
|
|
substituteInPlace "$dev/lib/cmake/lld/LLDTargets-release.cmake" \
|
|
|
|
--replace "\''${_IMPORT_PREFIX}/bin/lld" "$out/bin/lld"
|
2020-07-18 16:06:22 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "ROCm fork of the LLVM Linker";
|
|
|
|
homepage = "https://github.com/RadeonOpenCompute/llvm-project";
|
|
|
|
license = licenses.ncsa;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|