@@ -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
32+ # Change to the source sub directory if there is one.
33+ lib.optionalString (drv.srcSubDir or "" != "") ''
34+ cd ${lib.removePrefix "/" drv.srcSubDir}
32 runHook preCheck
38 runHook preCheck