haskell.nix/modules
Hamish Mackenzie a443611ecf
Add evalSystem and evalPackages project args (#1546)
This adds a way to specify the `evalSystem` or `evalPackages` explicitly when calling the `project` functions.

Currently if we want to make a `flake` that supports multiple systems we have few options:

* Require builders for all the supported systems (even just for `nix flake show`).

* Pass `--impure` so that haskell.nix can see `builtins.currentSystem` to set up `pkgs.evalPackages` to use that.  Unfortunately this prevents nix from caching some of the work it does and often results in it recalculating for each supported system when it would otherwise be cached and take no time at all.

* Add an overlay to replace `evalPackages`.  This works, but it is not straight forward.

* Materialize the nix files for the project.

This change allows `evalSystem = "x86_64-linux";` to be passed telling `haskell.nix` to run `cabal` and `nix-tools` on that system.  The user will have to have a builder for that system, but does not need to have builders for the others (unless building outputs for them).
2022-07-28 20:03:05 +12:00
..
cabal-project.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +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 evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
configuration-nix.nix enable internal-interpreter flag for ghc (#1536) 2022-07-02 21:07:09 +12:00
error-handler.nix Fix the way ExeDependency is handled (#1036) 2021-02-12 10:45:23 +13:00
hackage-project.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
hackage-quirks.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
hackage.nix Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
hix-project.nix Add nixos-21.11 builds. (#1304) 2021-12-07 12:55:20 +13:00
package.nix Fixes to help building of all packages in stackage (#1503) 2022-06-02 22:45:09 +12:00
plan.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
project-common.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +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 Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00