@@ -97,6 +97,7 @@ let
98 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
98 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
99 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
99 INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
100+ EXTRA_HADDOCK_OPTS += --quickjump --hyperlinked-source
100 '' + lib.optionalString (targetPlatform != hostPlatform) ''
101 '' + lib.optionalString (targetPlatform != hostPlatform) ''
101 CrossCompilePrefix = ${targetPrefix}
102 CrossCompilePrefix = ${targetPrefix}
102 '' + lib.optionalString isCrossTarget ''
103 '' + lib.optionalString isCrossTarget ''
@@ -195,18 +196,21 @@ stdenv.mkDerivation (rec {
196 # these two are required
197 # these two are required
197 substituteInPlace mk/config.mk --replace "$TOP" "$PWD" \
198 substituteInPlace mk/config.mk --replace "$TOP" "$PWD" \
198− --replace "$PREFIX" "$out"
199+ --replace "$PREFIX" "$out" \
200+ --replace "${configured-src.doc}" "$doc"
200 substituteInPlace mk/install.mk --replace "$TOP" "$PWD" \
202 substituteInPlace mk/install.mk --replace "$TOP" "$PWD" \
201− --replace "$PREFIX" "$out"
203+ --replace "$PREFIX" "$out" \
204+ --replace "${configured-src.doc}" "$doc"
203 # these two only for convencience.
206 # these two only for convencience.
204− substituteInPlace config.log --replace "$TOP" "$PWD"\
207+ substituteInPlace config.log --replace "$TOP" "$PWD" \
205− --replace "$PREFIX" "$out"
208+ --replace "$PREFIX" "$out" \
206− substituteInPlace config.status --replace "$TOP" "$PWD"\
209+ --replace "${configured-src.doc}" "$doc"
207− --replace "$PREFIX" "$out")
211+ substituteInPlace config.status --replace "$TOP" "$PWD" \
212+ --replace "$PREFIX" "$out" \
213+ --replace "${configured-src.doc}" "$doc")
212 enableParallelBuilding = true;
216 enableParallelBuilding = true;