rustPlatform: run cargoDepsHook inside cargoSetupPostUnpackHook
This commit is contained in:
@@ -162,11 +162,6 @@ lib.extendMkDerivation {
|
||||
|
||||
patches = cargoPatches ++ patches;
|
||||
|
||||
postUnpack = ''
|
||||
eval "$cargoDepsHook"
|
||||
''
|
||||
+ (args.postUnpack or "");
|
||||
|
||||
configurePhase =
|
||||
args.configurePhase or ''
|
||||
runHook preConfigure
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
cargoSetupPostUnpackHook() {
|
||||
echo "Executing cargoSetupPostUnpackHook"
|
||||
|
||||
eval "${cargoDepsHook-}"
|
||||
|
||||
# Some cargo builds include build hooks that modify their own vendor
|
||||
# dependencies. This copies the vendor directory into the build tree and makes
|
||||
# it writable. If we're using a tarball, the unpackFile hook already handles
|
||||
|
||||
Reference in New Issue
Block a user