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:
@@ -39,10 +39,17 @@ in stdenv.mkDerivation (args // {
|
||||
'' + (args.prePatch or "");
|
||||
|
||||
buildPhase = args.buildPhase or ''
|
||||
echo "Running cargo build"
|
||||
echo "Running cargo build --release"
|
||||
cargo build --release
|
||||
'';
|
||||
|
||||
checkPhase = args.checkPhase or ''
|
||||
echo "Running cargo test"
|
||||
cargo test
|
||||
'';
|
||||
|
||||
doCheck = args.doCheck or true;
|
||||
|
||||
installPhase = args.installPhase or ''
|
||||
mkdir -p $out/bin
|
||||
for f in $(find target/release -maxdepth 1 -type f); do
|
||||
|
||||
Reference in New Issue
Block a user