|
186 | 186 | "https://chap.intersectmbo.org/" = inputs.CHaP; |
187 | 187 | }; |
188 | 188 |
|
189 | | - shell.tools = { |
190 | | - cabal = "latest"; |
191 | | - fourmolu = "latest"; |
192 | | - haskell-language-server = { |
193 | | - src = nixpkgs.haskell-nix.sources."hls-2.11"; |
| 189 | + shell = { |
| 190 | + tools = { |
| 191 | + cabal = "latest"; |
| 192 | + fourmolu = "latest"; |
| 193 | + hlint = "latest"; |
| 194 | + |
| 195 | + haskell-language-server = { |
| 196 | + src = nixpkgs.haskell-nix.sources."hls-2.11"; |
| 197 | + }; |
| 198 | + } // lib.optionalAttrs (config.compiler-nix-name == "ghc967") { |
| 199 | + weeder = "latest"; |
194 | 200 | }; |
195 | | - hlint = "latest"; |
196 | | - } // lib.optionalAttrs (config.compiler-nix-name == "ghc967") { |
197 | | - weeder = "latest"; |
| 201 | + |
| 202 | + # Now we use pkgsBuildBuild, to make sure that even in the cross |
| 203 | + # compilation setting, we don't run into issues where we pick tools |
| 204 | + # for the target. |
| 205 | + buildInputs = with nixpkgs.pkgsBuildBuild; [ |
| 206 | + git |
| 207 | + ]; |
| 208 | + |
| 209 | + withHoogle = true; |
| 210 | + |
| 211 | + crossPlatforms = _: []; |
198 | 212 | }; |
199 | | - # Now we use pkgsBuildBuild, to make sure that even in the cross |
200 | | - # compilation setting, we don't run into issues where we pick tools |
201 | | - # for the target. |
202 | | - shell.buildInputs = with nixpkgs.pkgsBuildBuild; [ |
203 | | - gitAndTools.git |
204 | | - ]; |
205 | | - shell.withHoogle = true; |
206 | | - shell.crossPlatforms = _: []; |
207 | 213 |
|
208 | 214 | modules = [ |
209 | 215 | ({ lib, pkgs, ... }: { |
|
212 | 218 | packages.katip.doExactConfig = true; |
213 | 219 | # Split data to reduce closure size |
214 | 220 | packages.ekg.components.library.enableSeparateDataOutput = true; |
215 | | - # Haddock is failing for these two packages (at least with GHC 8.10.7) |
| 221 | + # Haddock is failing for these two packages (at least with GHC 8.10.7) |
216 | 222 | packages.ouroboros-network.doHaddock = config.compiler-nix-name != "ghc8107"; |
217 | 223 | packages.cardano-node.doHaddock = config.compiler-nix-name != "ghc8107"; |
218 | 224 | }) |
|
232 | 238 | }) |
233 | 239 |
|
234 | 240 | ({ lib, pkgs, config, ... }: { |
235 | | - # lib:ghc is a bit annoying in that it comes with it's own build-type:Custom, and then tries |
236 | | - # to call out to all kinds of silly tools that GHC doesn't really provide. |
237 | | - # For this reason, we try to get away without re-installing lib:ghc for now. |
238 | | - reinstallableLibGhc = false; |
239 | | - }) |
| 241 | + # lib:ghc is a bit annoying in that it comes with it's own build-type:Custom, and then tries |
| 242 | + # to call out to all kinds of silly tools that GHC doesn't really provide. |
| 243 | + # For this reason, we try to get away without re-installing lib:ghc for now. |
| 244 | + reinstallableLibGhc = false; |
| 245 | + }) |
240 | 246 |
|
241 | 247 | (pkgs.lib.mkIf pkgs.hostPlatform.isMusl |
242 | 248 | (let |
|
267 | 273 | packages.cardano-db.ghcOptions = ghcOptions; |
268 | 274 | packages.cardano-db-tool.ghcOptions = ghcOptions; |
269 | 275 | packages.cardano-smash-server.ghcOptions = ghcOptions; |
| 276 | + |
| 277 | + doHoogle = false; |
| 278 | + doHaddock = false; |
270 | 279 | })) |
271 | 280 |
|
272 | 281 | ({ |
|
0 commit comments