@@ -8,6 +8,10 @@
88, linux-namespaces, iproute, network-uri, fontconfig
99}:
1010let addGcTestDepends = drv: if stdenv.system != "x86_64-linux" then drv else drv // {
11+ # The headless browser run as part of gc tests would hang/crash without this
12+ preCheck = ''
13+ export FONTCONFIG_PATH=${fontconfig.out}/etc/fonts
14+ '';
1115 testHaskellDepends = (drv.testHaskellDepends or []) ++ [ temporary jsaddle-warp process linux-namespaces ];
1216 testSystemDepends = (drv.testSystemDepends or []) ++ [ chromium iproute ];
1317 };
@@ -34,11 +38,6 @@ in mkDerivation (addGcTestDepends {
3438 export HOME="$PWD"
3539 '';
3640
37− # The headless browser run as part of gc tests would hang/crash without this
38− preCheck = ''
39− export FONTCONFIG_PATH=${fontconfig.out}/etc/fonts
40− '';
41−
4241 # Show some output while running tests, so we might notice what's wrong
4342 testTarget = "--show-details=streaming";
4443