haskell.nix/overlays
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
..
emscripten fix ghcjs (#1311) 2022-01-09 03:11:37 +13:00
patches Fix for ghc-lib-parser 9.2 and haskell.nix patched ghc (#1502) 2022-06-02 15:00:54 +12:00
android.nix Enable aarch64 builds (#1316) 2022-01-09 11:36:53 +13:00
armv6l-linux.nix Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
bootstrap.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
darwin.nix x509-system: use /usr/bin/security on macOS. (#974) 2020-12-16 16:00:20 +00:00
default.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
emscripten.nix fix ghcjs (#1311) 2022-01-09 03:11:37 +13:00
ghc-packages.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
ghc.nix Enable debug info on linux targets (#1050) 2021-02-22 18:27:36 +13:00
ghcjs-asterius-triple.nix Flake (#589 and #567) 2020-05-07 11:16:38 +12:00
ghcjs.nix Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
gobject-introspection.nix Improve conditional guarding gi fix (#977) 2020-12-18 19:23:12 +13:00
haskell.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
hix.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
hydra.nix Remove canCleanSource (#1409) 2022-03-25 12:57:36 +13:00
linux-cross.nix Enable aarch64 builds (#1316) 2022-01-09 11:36:53 +13:00
mingw_w64.nix Workaround possible TH environment overflow running wine (#1517) 2022-06-16 20:58:29 +12:00
musl.nix Build bzip2 & xz with static libs in musl crossPkgs (#1456) 2022-04-28 10:13:42 +01:00
nix-prefetch-git-minimal.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
python.nix Flake (#589 and #567) 2020-05-07 11:16:38 +12:00
tools.nix Add evalSystem and evalPackages project args (#1546) 2022-07-28 20:03:05 +12:00
windows.nix Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
wine.nix Use targetPackages.ncurses for ghc cross compiler (#1513) 2022-06-11 08:37:16 +12:00