cargo: do not make install in cargo (#21799)

cargo is already a cargo package, so why not build it with cargo
and safe us the special cases
This commit is contained in:
Reno Reckling 2017-01-11 12:33:53 +01:00 committed by Robin Gloster
parent 260d97ca25
commit 8e2a4e0948

View File

@ -23,17 +23,6 @@ rustPlatform.buildRustPackage rec {
LIBGIT2_SYS_USE_PKG_CONFIG=1;
configurePhase = ''
./configure --enable-optimize --prefix=$out
'';
buildPhase = "make";
installPhase = ''
make install
${postInstall}
'';
postInstall = ''
rm "$out/lib/rustlib/components" \
"$out/lib/rustlib/install.log" \