diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index c0bfaee1b654..dc25fdb6c3ab 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -956,6 +956,19 @@ self: super: builtins.intersectAttrs super { ''; }) super.fourmolu_0_8_2_0; + # Test suite needs to execute 'disco' binary + disco = overrideCabal (drv: { + preCheck = drv.preCheck or "" + '' + export PATH="$PWD/dist/build/disco:$PATH" + ''; + testFlags = drv.testFlags or [] ++ [ + # Needs network access + "-p" "!/oeis/" + ]; + # disco-examples needs network access + testTarget = "disco-tests"; + }) super.disco; + # Apply a patch which hardcodes the store path of graphviz instead of using # whatever graphviz is in PATH. graphviz = overrideCabal (drv: {