Skip to content

Commit

Permalink
haskellPackages.disco: run offline tests only
Browse files Browse the repository at this point in the history
  • Loading branch information
sternenseemann committed Sep 28, 2022
1 parent b193231 commit dec0fef
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/development/haskell-modules/configuration-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit dec0fef

Please sign in to comment.