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