{ lib, stdenv , fetch , cmake , libxml2 , llvm , version }: stdenv.mkDerivation rec { pname = "lld"; inherit version; src = fetch pname "1dq82dkam8x2niha18v7ckh30zmzyclydzipqkf7h41r3ah0vfk0"; 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; }; }