mirror of
https://github.com/nix-community/naersk
synced 2024-11-26 13:30:17 +00:00
Don't allow parameterization of cargoDoc
This commit is contained in:
parent
f7a6150900
commit
1845453377
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue