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
|
||||
, #| 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
|
||||
|
|
Loading…
Reference in a new issue