Skip to content

Commit 23500d3

Browse files
committed
Fix coverage
1 parent b8b825d commit 23500d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

builder/comp-builder.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,11 @@ let
635635
''))
636636
+ (lib.optionalString doCoverage ''
637637
mkdir -p $out/share
638-
cp -r dist/${lib.optionalString (builtins.compareVersions defaults.ghc.version "9.9" >= 0) "build/extra-compilation-artifacts/"}hpc $out/share
638+
if [ -d dist/build/extra-compilation-artifacts ]; then
639+
cp -r dist/build/extra-compilation-artifacts/hpc $out/share
640+
else
641+
cp -r dist/hpc $out/share
642+
fi
639643
cp dist/setup-config $out/
640644
'')
641645
}

0 commit comments

Comments
 (0)