Skip to content

Commit a88d16b

Browse files
hamishmackerikd
authored andcommitted
Bunch of Nix/CI fixes
* Fix `packages.ekg` issue. * Make `extra-packages: cardano-cli` nix only * Disable broken haddock
1 parent 57c04c1 commit a88d16b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

flake.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
inputs.hackage.follows = "hackageNix";
1010
};
1111
hackageNix = {
12-
url = "github:input-output-hk/hackage.nix";
12+
url = "github:input-output-hk/hackage.nix?ref=for-stackage";
1313
flake = false;
1414
};
1515
iohkNix = {
@@ -170,6 +170,11 @@
170170
in
171171
lib.genAttrs compilers (c: { compiler-nix-name = c; });
172172

173+
# cardano-cli is needed when building the docker image
174+
cabalProjectLocal = ''
175+
extra-packages: cardano-cli
176+
'';
177+
173178
crossPlatforms = p:
174179
lib.optional (system == "x86_64-linux") p.musl64 ++
175180
lib.optional
@@ -213,10 +218,14 @@
213218

214219
modules = [
215220
({ lib, pkgs, ... }: {
221+
package-keys = ["ekg"];
216222
# Ignore version bounds
217223
packages.katip.doExactConfig = true;
218224
# Split data to reduce closure size
219225
packages.ekg.components.library.enableSeparateDataOutput = true;
226+
# Haddock is failing for these two packages (at least with GHC 8.10.7)
227+
packages.ouroboros-network.doHaddock = config.compiler-nix-name != "ghc8107";
228+
packages.cardano-node.doHaddock = config.compiler-nix-name != "ghc8107";
220229
})
221230

222231
({

0 commit comments

Comments
 (0)