patch applied (cabal-install): Take nub by package id when making a dep graph