hackage2nix.hs: re-wrote tool so that it generates a complete hackage tree as Nix expressions
License.hs: add support for AGPL 3.0 and BSD2 licenses in non-canonical form

BSD2 is actually a proper tag in the latest versio of Cabal, which we
cannot use because the older version is a GHC core package. :-(