haskellPackages.disco: run offline tests only

This commit is contained in:
sternenseemann 2022-09-28 12:07:55 +02:00
parent b193231a39
commit dec0fefd52

View file

@ -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: {