zig: checks are back!

This commit is contained in:
AndersonTorres 2021-06-14 13:09:01 -03:00
parent ded9ec24f8
commit 2dfbbc0266

View File

@ -37,6 +37,13 @@ stdenv.mkDerivation rec {
export HOME=$TMPDIR;
'';
doCheck = true;
checkPhase = ''
runHook preCheck
./zig test --cache-dir "$TMPDIR" -I $src/test $src/test/behavior.zig
runHook postCheck
'';
meta = with lib; {
homepage = "https://ziglang.org/";
description =
@ -48,4 +55,4 @@ stdenv.mkDerivation rec {
broken = stdenv.isDarwin;
};
}
# TODO: checkPhase