rust-bindgen: enable tests

now that we have a recent enough rustfmt
This commit is contained in:
Symphorien Gibol 2018-11-23 17:52:25 +01:00
parent 7bd3a3bd55
commit c73f75dc5e

View file

@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
chmod +x $out/bin/bindgen
'';
doCheck = false; # half the tests fail because our rustfmt is not nightly enough
doCheck = true;
checkInputs =
let fakeRustup = writeScriptBin "rustup" ''
#!${stdenv.shell}
@ -42,6 +42,10 @@ rustPlatform.buildRustPackage rec {
fakeRustup # the test suite insists in calling `rustup run nightly rustfmt`
clang
];
preCheck = ''
# for the ci folder, notably
patchShebangs .
'';
meta = with stdenv.lib; {
description = "C and C++ binding generator";