I don't know how this was working. The `pkgs` attribute is only available after all the `imports` are done.