haskell-generic-builder: re-write the way build inputs are found

Every package has a directory $out/nix-support/${ghc.name}-package.conf.d that
contains the transitive closure of all build inputs required to build this
package (and run the test suite).