Don't allow parameterization of cargoDoc

This commit is contained in:
Bas van Dijk 2019-08-26 15:39:06 +02:00
parent f7a6150900
commit 1845453377

View file

@ -3,8 +3,6 @@ src:
cargoBuild
, #| What command to run during the test phase
cargoTest ? "cargo test --$CARGO_BUILD_PROFILE"
, #| What command to run during the optional doc phase
cargoDoc ? ''cargo doc --offline "$doc_arg"''
#| Whether or not to forward build artifacts to $out
, copyBuildArtifacts ? false
, doCheck ? true
@ -198,9 +196,10 @@ with rec
doc_arg="--release"
fi
cargoDoc="cargo doc --offline $doc_arg"
echo "Running doc command:"
echo " ${cargoDoc}"
${cargoDoc}
echo " $cargoDoc"
$cargoDoc
${lib.optionalString removeReferencesToSrcFromDocs ''
# Remove references to the source derivation to reduce closure size