From dec0fefd52d56dcec9350b39b29afe211527e13a Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 28 Sep 2022 12:07:55 +0200 Subject: [PATCH] haskellPackages.disco: run offline tests only --- .../haskell-modules/configuration-nix.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: {