mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
* 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.
22 lines
688 B
Plaintext
22 lines
688 B
Plaintext
cabal-version: 2.4
|
|
name: ghcjs-overlay-test
|
|
version: 0.1.0.0
|
|
synopsis: User package
|
|
description: Uses ghcjs-overlay to get patched double-conversion
|
|
license: BSD-3-Clause
|
|
author: Hamish Mackenzie
|
|
maintainer: Hamish.K.Mackenzie@gmail.com
|
|
extra-source-files: CHANGELOG.md
|
|
|
|
library
|
|
exposed-modules: MyLib
|
|
build-depends: base < 5,
|
|
double-conversion ==2.0.2.0
|
|
default-language: Haskell2010
|
|
|
|
executable ghcjs-overlay-test
|
|
main-is: Main.hs
|
|
other-modules: MyLib
|
|
build-depends: base, ghcjs-overlay-test
|
|
default-language: Haskell2010
|