Gavin Collins (29) of 39, Leenan Gardens in Derry admitted possessing cannabis and possessing the drug with intent to supply on November 30 2011.
The cannabis weighed 310 grammes and if cut would have lasted up to six months.
Collins told police that the drugs were for personal use and and admitted that sometimes he would let his friends smoke cannabis in his company.
He said the arrest had forced Collins to confront his habit and he was now cannabis free.
Collins was sentenced to six months in prison suspended for 2 years and fined £300.