Skip to content

Commit 091de52

Browse files
committed
Fix /homeless-shelter issue when srcSubDir is ""
1 parent dbe2aca commit 091de52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/check.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ in stdenv.mkDerivation ({
3030
mkdir $out
3131
${
3232
# Change to the source sub directory if there is one.
33-
lib.optionalString (drv ? srcSubDir) ''
33+
lib.optionalString (drv.srcSubDir or "" != "") ''
3434
cd ${lib.removePrefix "/" drv.srcSubDir}
3535
''
3636
}

0 commit comments

Comments
 (0)