mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 05:36:09 +03:00
buildTrunkPackage: correctly inherit buildPhaseCargoCommand
This commit is contained in:
parent
30ad43e875
commit
3096fc35ad
@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
### Fixed
|
||||
* `buildTrunkPackage` will pass in `--release=true` (instead of just
|
||||
`--release`) for trunk versions 0.21 or higher to avoid argument ambiguities
|
||||
* `buildTrunkPackage` will now correctly honor `buildPhaseCargoCommand` if
|
||||
specified (previously the value of `buildPhaseCommand` was incorrectly being
|
||||
used)
|
||||
* `removeReferencesToVendoredSourcesHook` avoids referencing `/dev/fd`
|
||||
directly since it may not be present on certain platforms
|
||||
|
||||
|
@ -81,7 +81,7 @@ mkCargoDerivation (args // {
|
||||
echo "TRUNK_TOOLS_WASM_OPT=''${TRUNK_TOOLS_WASM_OPT}"
|
||||
'';
|
||||
|
||||
buildPhaseCargoCommand = args.buildPhaseCommand or ''
|
||||
buildPhaseCargoCommand = args.buildPhaseCargoCommand or ''
|
||||
local profileArgs=""
|
||||
if [[ "$CARGO_PROFILE" == "release" ]]; then
|
||||
profileArgs="--release${lib.optionalString (lib.versionAtLeast trunk.version "0.21") "=true"}"
|
||||
|
Loading…
Reference in New Issue
Block a user