haskell.nix/modules
Hamish Mackenzie 674f5b0a3d
Better support for source-repository-packages, only include planned components and pick latest packages (#1166)
This change updates to the latest `nix-tools` to get the following fixes (there are 3 PRs in nix-tools, but just the one in haskell.nix to avoid having to update the materialized files multiple times):

## Better support for source repository packages

* https://github.com/input-output-hk/nix-tools/pull/107

Currently these are replaced by the `cabalProject` functions with regular `packages:` before running cabal configure.  Cabal does not treat these the same (the setting of `tests:` and `benchmarks:` in the `cabal.project` file):

* The plan found by `cabalProject` may not match the one used when running `cabal`.
* The performance of the solver may not be consistent with running `cabal`.

This change replaces `source-repository-package` with another `source-repository-package` pointing at a minimal git repo.

## Only include planned components

* https://github.com/input-output-hk/nix-tools/pull/108

Only the components in the `plan.json` are now included in the haskell.nix cabal projects.  This avoids missing dependencies attempting to build components that were not in the plan.  Should fix #993.

## Pick latest packages

* https://github.com/input-output-hk/nix-tools/pull/109

When the same package occurs more than once in a `plan.json` file (perhaps because it is needed both by the project itself and by one of the `setup` dependencies or `build-tool-dependencies` of the project) the latest version will now be the one picked by haskell.nix. This is a work around for a common issue with `cabal-doctest` when cross compiling to windows (an old version of Win32 is used even if a newer one was required by the projects `constraints`).
2021-07-23 14:27:56 +12:00
..
cabal-project.nix Update the project modules and fix missing args param (#1144) 2021-06-20 18:00:22 +12:00
cabal.nix Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
compat-driver.nix Use NixOS module system 2018-11-01 13:33:41 +08:00
component-driver.nix Add GHC 9.0.1 (#1032) 2021-03-28 21:03:20 +13:00
configuration-nix.nix Use configuration-nix to include freetds dependency of the odbc package (#1000) 2021-01-16 13:16:00 +13:00
error-handler.nix Fix the way ExeDependency is handled (#1036) 2021-02-12 10:45:23 +13:00
hackage.nix Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
hix-project.nix Add Hix wrappers for Nix tools (#1053) 2021-06-26 17:58:06 +12:00
package.nix support cabal-doctest (#427) 2021-03-20 14:25:30 +13:00
plan.nix Better support for source-repository-packages, only include planned components and pick latest packages (#1166) 2021-07-23 14:27:56 +12:00
project-common.nix Update the project modules and fix missing args param (#1144) 2021-06-20 18:00:22 +12:00
project.nix Update the project modules and fix missing args param (#1144) 2021-06-20 18:00:22 +12:00
stack-project.nix Update the project modules and fix missing args param (#1144) 2021-06-20 18:00:22 +12:00