NYPD cops have busted two inmates from Long Island for the 2015 drive-by shooting slaying of the rapper Chinx, officials said Thursday.

Suspects Jamar Hill, 26, of Valley Stream, and Quincy Homere, 32, of Baldwin, both face a five-count indictment on charges of second-degree murder, attempted murder, assault, and criminal possession of a weapon, Queens District Attorney Richard A. Brown announced.

Both Hill and Homere were locked up on unrelated charges, according to a law enforcement source. Homere was behind bars on federal charges and Hill on state, sources said.

Lionel “Chinx” Pickens, 31, was killed – and his friend wounded – in a Queens drive-by shooting in the up-and-coming rapper’s brand new Porsche less than an hour after performing at a Brooklyn nightclub on May 17, 2015.

Pickens’ widow, Janelli Caceres, praised the arrests on Facebook, posting Thursday: “GOD is good and he hears your prayers,” along with a video of one of the suspects being walked into the 107th Precinct.

The slain rapper – a member of French Montana’s Coke Boys group – was riddled with 15 bullets as he and 27-year-old pal Antar Alziadi were cruising along Queens Boulevard at 4 a.m.

Hill and Homere followed Pickens from the Red Wolf nightclub in Brooklyn – where he had just performed – into Queens before opening fire from a car on the rapper’s 2015 Porsche Panamera 4 in the vicinity of Main Street and Queens Boulevard, the district attorney said.

Following the shooting, a wounded Aldiadi stumbled from the car and called 911 as blood gushed from his back.

Both men were taken to Jamaica Hospital where the rapper was pronounced dead. Aldiadi was treated for two gunshot wounds to his back.

Relatives of the Pickens had previously told The Post they believe the killing was carried out by a rival from Far Rockaway.

At the time of the shooting, the NYPD offered up a $2,500 reward for information leading to an arrest.

“In another example of the mindless gun violence plaguing our country, a young, up-and-coming musician had his life and career dramatically cut short by a burst of senseless shooting that also wounded an acquaintance. Such violence has no place in a civilized society,” Brown said in a statement.

Police Commissioner James O’Neill said the indictment shows that the suspects “essentially stalked their victims before shooting them and making a getaway.”

“But through the talent and tenacity of the Queens South detectives, working closely with the office of the Queens District Attorney, they have now been brought back to answer for this violent act,” O’Neill said.

Hill and Homere each face up to 25 years to life in prison if convicted.

Homere hung his head as the two were perp-walked from the 107th Precinct Thursday. Both suspects did not speak to reporters.

Hill has five prior arrests on his record and Homere has eight, according to cops.

Hill, along with two others, robbed a victim with a shotgun in Jamaica in July 2014, but wasn’t busted for the theft until June 2015 — a month after the slaying of Pickens, police said.

He pled guilty in that case and was sentenced to five years in prison.

Homere was locked up at the Brooklyn Metropolitan Detention Center in connection to a 2015 robbery of a Wells Fargo on Long Island before he was busted for Pickens’ murder. The case was pending trial.

The suspects were expected to be arraigned at Queens Supreme Court.

Additional reporting by Larry Celona and Reuven Fenton