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:
Alyssa Ross 2019-12-02 21:24:40 +00:00
parent 839c9e9344
commit fdfbb4671e

View file

@ -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;