Skip to content

Commit 1d50c97

Browse files
Try #1005:
2 parents 0c3689b + 091de52 commit 1d50c97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/check.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ in stdenv.mkDerivation ({
2828
# component and we want it to quietly succeed.
2929
buildPhase = ''
3030
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+
}
3137
3238
runHook preCheck
3339

0 commit comments

Comments
 (0)