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:
Ricardo M. Correia
2015-04-23 15:26:23 +02:00
parent e42c17ee97
commit 0cde1dc524
5 changed files with 8 additions and 10 deletions
+6
View File
@@ -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