haskell.nix/test/extra-hackage
Hamish Mackenzie b6de6ef3b8
Remove components.all (#776)
It causes a lot of issues. To make this work:

* `shellFor` is updated to use `getAllComponents` instead of `.all`.
* `getAllComponents` is updated to work on the package rather than
  the package config.
* Tests updated to not use `.library` or `.exes.X` where appropriate.
* Documentation updated.
* Out of date examples removed.

As a bonus `shellFor` now takes a `components` argument that might be
useful for limiting the dependencies of the shell to just the ones
needed for the components you intend to work on.
2020-07-21 16:06:54 +12:00
..
external-package-demo External hackages (#535) 2020-05-02 18:16:34 +08:00
external-package-user External hackages (#535) 2020-05-02 18:16:34 +08:00
hackage External hackages (#535) 2020-05-02 18:16:34 +08:00
01-index.tar.gz External hackages (#535) 2020-05-02 18:16:34 +08:00
default.nix Remove components.all (#776) 2020-07-21 16:06:54 +12:00
external-package-demo-0.1.0.0.tar.gz External hackages (#535) 2020-05-02 18:16:34 +08:00
README.md External hackages (#535) 2020-05-02 18:16:34 +08:00

Tests for extra Hackage functionality

This directory contains two packages, external-package-demo and external-package-user, the second one depends on the first one. Both packages were created with cabal init.

external-package-demo was uploaded to local Hackage at localhost and 01-index.tar.gz from that Hackage was downloaded to this directory. Then the index file was processed with hackage-to-nix, the result is in hackage/ directory.

The tests check that cabalProject' is able to construct plan with dependencies from extra Hackage and then build the package itself.