I can't see any support for msm8974 in the kernel sources, so this wouldn't be compatibe with the Nexus5 chipset.
The LG Nexus 5 phone is supported by the mainline kernel [4.9].