From 9fd89b820f46dbc04e471a51602aacd064147b04 Mon Sep 17 00:00:00 2001 From: Samuel Evans-Powell Date: Wed, 29 Jun 2022 09:57:47 +0800 Subject: [PATCH] Workaround issue with Haddock of webkit2gtk3-javascriptcore - See https://github.com/gtk2hs/webkit-javascriptcore/issues/6 - The Haddock step of webkit2gtk3 fails. We won't miss the Haddock documentation for this package so we just workaround it by disabling the Haddock generation. --- flake.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 5ee36bc..b3ac4e8 100644 --- a/flake.nix +++ b/flake.nix @@ -9,10 +9,13 @@ builtins.trace haskellNix (flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: let overlays = [ haskellNix.overlay (final: prev: { - test2 = final.haskell-nix.project' { - src = ./.; - compiler-nix-name = "ghc8104"; - }; + test2 = final.haskell-nix.project' { + src = ./.; + compiler-nix-name = "ghc8104"; + modules = [ + { packages.webkit2gtk3-javascriptcore.doHaddock = false; } + ]; + }; }) ]; pkgs = import nixpkgs { inherit system overlays; }; flake = pkgs.test2.flake {};