haskell.nix/test/shell-for
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
..
.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
pkga shellFor: Fix bug where packages were not excluded from the env (#285) 2019-11-01 20:08:31 +10:00
pkgb niv update nixpkgs-unstable and add ghc 8.10.5 (#1121) 2021-06-15 19:50:45 +12:00
cabal.project tests: Add a cabal new-build project 2019-05-28 09:35:00 +10:00
conduit.hs tests: Add tests for the shellFor function 2019-05-28 09:34:58 +10:00
default.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
pkgs.nix Add GHC 8.10.7 (#1220) 2021-09-01 22:43:31 +12:00
single.project Fix name of shellFor derivation for a single package. (#155) 2019-05-30 22:46:39 +02:00