install packunused & packdeps with right version of cabal
pass .cabal file to packdeps