on iko/ghcjs-patch-master help sign in
Use the source sub directory when running tests (#1005)
505130bHamish Mackenzie
@@ -28,6 +28,12 @@ in stdenv.mkDerivation ({
28 # component and we want it to quietly succeed.
28 # component and we want it to quietly succeed.
29 buildPhase = ''
29 buildPhase = ''
30 mkdir $out
30 mkdir $out
31+ ${
32+ # Change to the source sub directory if there is one.
33+ lib.optionalString (drv.srcSubDir or "" != "") ''
34+ cd ${lib.removePrefix "/" drv.srcSubDir}
35+ ''
36+ }
31
37
32 runHook preCheck
38 runHook preCheck
33
39