on develop help sign in
Avoid fontconfig if not required
7cfee48Luigy Leon
reflex-dom-core/default.nix+4−5
@@ -8,6 +8,10 @@
8, linux-namespaces, iproute, network-uri, fontconfig
8, linux-namespaces, iproute, network-uri, fontconfig
9}:
9}:
10let addGcTestDepends = drv: if stdenv.system != "x86_64-linux" then drv else drv // {
10let 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+ '';
11 testHaskellDepends = (drv.testHaskellDepends or []) ++ [ temporary jsaddle-warp process linux-namespaces ];
15 testHaskellDepends = (drv.testHaskellDepends or []) ++ [ temporary jsaddle-warp process linux-namespaces ];
12 testSystemDepends = (drv.testSystemDepends or []) ++ [ chromium iproute ];
16 testSystemDepends = (drv.testSystemDepends or []) ++ [ chromium iproute ];
13 };
17 };
@@ -34,11 +38,6 @@ in mkDerivation (addGcTestDepends {
34 export HOME="$PWD"
38 export HOME="$PWD"
35 '';
39 '';
36
40
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−
42 # Show some output while running tests, so we might notice what's wrong
41 # Show some output while running tests, so we might notice what's wrong
43 testTarget = "--show-details=streaming";
42 testTarget = "--show-details=streaming";
44
43