@@ -4,6 +4,14 @@ drv:
5 component = drv.config;
5 component = drv.config;
12+ # srcOnly returns just the subdir, so we're already in it.
7# This derivation can be used to execute test component.
15# This derivation can be used to execute test component.
8# The $out of the derivation is a file containing the resulting
16# The $out of the derivation is a file containing the resulting
9# stdout output.
17# stdout output.
@@ -30,8 +38,8 @@ in stdenv.mkDerivation ({
30 mkdir $out
38 mkdir $out
32 # Change to the source sub directory if there is one.
40 # Change to the source sub directory if there is one.
33− lib.optionalString (drv.srcSubDir or "" != "") ''
41+ lib.optionalString (subdir != "") ''
34− cd ${lib.removePrefix "/" drv.srcSubDir}
42+ cd ${lib.removePrefix "/" subdir}