rustPlatform: forward unpackPhase to fetchcargo
If a custom unpackPhase is used for the package, it needs to also be used for fetchcargo so the same source is available for vendoring.
This commit is contained in:
parent
839c9e9344
commit
fdfbb4671e
|
@ -4,6 +4,7 @@
|
|||
, cargoSha256 ? "unset"
|
||||
, src ? null
|
||||
, srcs ? null
|
||||
, unpackPhase ? null
|
||||
, cargoPatches ? []
|
||||
, patches ? []
|
||||
, sourceRoot ? null
|
||||
|
@ -29,7 +30,7 @@ assert buildType == "release" || buildType == "debug";
|
|||
let
|
||||
cargoDeps = if cargoVendorDir == null
|
||||
then fetchcargo {
|
||||
inherit name src srcs sourceRoot cargoUpdateHook;
|
||||
inherit name src srcs sourceRoot unpackPhase cargoUpdateHook;
|
||||
copyLockfile = verifyCargoDeps;
|
||||
patches = cargoPatches;
|
||||
sha256 = cargoSha256;
|
||||
|
|
Loading…
Reference in a new issue