haskell.nix/mk-local-hackage-repo
Hamish Mackenzie 2576a948b5
Improve support for external Hackage repositories (#1370)
* Improve support for external Hackage repositories

This change builds #535. `repository` blocks in `cabal.project` parsed and `cabal` is used to automatically downloaded them.  Then `hackage-to-nix` is used to produce the nix required.

To make it work with restricted eval (on hydra for instance) we need to include a sha256 like this:

```
repository ghcjs-overlay
  url: https://input-output-hk.github.io/hackage-overlay-ghcjs
  secure: True
  root-keys:
  key-threshold: 0
  --sha256: sha256-EPlLYPmIGtxeahlOspRzwJv+60N5mqrNC2BY4jZKceE=
```

To find the correct `sha256` put in an invalid one and attempt a build.
2022-02-18 00:42:11 +13:00
..
default.nix Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
mirrors.json Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
root.json Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
snapshot.json Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
timestamp.json Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00