cargo: Remove setupHook
Instead, move that code into buildRustPackage. The setup hook was only doing part of the work anyway, and having it in a separate place was obscuring what was really going on.
This commit is contained in:
@@ -19,6 +19,12 @@ in stdenv.mkDerivation (args // {
|
||||
configurePhase = args.configurePhase or "true";
|
||||
|
||||
postUnpack = ''
|
||||
echo "Using cargo deps from $cargoDeps"
|
||||
cp -r $cargoDeps deps
|
||||
chmod +w deps -R
|
||||
|
||||
export CARGO_HOME=$(realpath deps)
|
||||
|
||||
echo "Using rust registry from $rustRegistry"
|
||||
(
|
||||
cd $sourceRoot
|
||||
|
||||
Reference in New Issue
Block a user