haskellPackages.disco: run offline tests only
This commit is contained in:
parent
b193231a39
commit
dec0fefd52
1 changed files with 13 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue