Use internalHackageIndexState to pin hoogle (#726)
Without this pin the plan choosen with the latest hackage is currently
broken and the build fails with:
```
src/General/Web.hs:21:1: error:
Could not find module ‘Data.Aeson.Encoding’
Perhaps you meant
Data.Aeson.Encode (from aeson-0.11.3.0)
Data.ASN1.Encoding (needs flag -package-key asn1-encoding-0.9.6)
Data.Text.Encoding (from text-1.2.3.1)
Use -v to see a list of the files searched for.
|
21 | import Data.Aeson.Encoding
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
```
commit8fac80f3ea2e5195fcab9ad5c77d189cf6934b97
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateWed 24 Jun 2020, 17:35 (6 years ago)
parent9321cfa
builder/default.nix+5−1
@@ -40,7 +40,11 @@ let
4040
4141 hoogleLocal = let
4242 nixpkgsHoogle = import (pkgs.path + /pkgs/development/haskell-modules/hoogle.nix);
43− in { packages ? [], hoogle ? pkgs.buildPackages.haskell-nix.tool "hoogle" "5.0.17.15" }:
43+ in { packages ? [], hoogle ? pkgs.buildPackages.haskell-nix.tool "hoogle" {
44+ version = "5.0.17.15";
45+ index-state = pkgs.haskell-nix.internalHackageIndexState;
46+ }
47+ }:
4448 haskellLib.weakCallPackage pkgs nixpkgsHoogle {
4549 # For musl we can use haddock from the buildGHC
4650 ghc = if stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl && !haskellLib.isNativeMusl