HCL Technologies will buy some software assets from U.S.-based IBM Corp for $1.8 billion, the companies said on Friday, marking the largest purchase ever by an Indian IT services firm.