buildRustPackage: Add check phase and enable it by default

Also disable check phase in cargo as there are lots of failures (some
probably due to trying to access the network).
This commit is contained in:
Ricardo M. Correia
2015-04-21 20:45:05 +02:00
parent 5e8a447739
commit d648be6724
3 changed files with 16 additions and 1 deletions
@@ -15,6 +15,10 @@ buildRustPackage rec {
buildInputs = [ makeWrapper ];
preCheck = ''
export RUST_SRC_PATH="${rustc.src}/src"
'';
installPhase = ''
mkdir -p $out/bin
cp -p target/release/racer $out/bin/