The 'talking scot' forum has a death for William Devine, who is recorded as dying on December 4th 1879 aged 66 years in Templemore. A forum user tried to find a record of the death on GRONI, but without success.
However, the death record of William Devine does seem to be on GRONI, but his surname had been incorrectly recorded or was incorrectly transcribed: "William DIVER" died in the Waterside, Derry, on December 2nd 1879 aged 66 years.
'Diven' is a common spelling of the surname 'Devine' in Derry records during the 19th century, so it is not hard to see how 'Diver' may have been incorrectly recorded or mistranscribed.
Also, the death for William Devine on December 4th 1879 was taken from Rootsireland's record of deaths in Derry City Cemetery. This date of death was probably the actual date of burial, which would have generally taken place two days after the death of a person. The code 0745 is given to all burials in the Derry City Cemetery recorded on the Derry Rootsireland website, and does not necessarily mean that William Devine (if it actually is the correct person) was sharing the same burial plot in Derry City Cemetery with his two deceased wives.
Best wishes,
Brendan