Merge pull request #126847 from AndersonTorres/new-zig

zig: checks are back!
This commit is contained in:
Anderson Torres 2021-06-14 13:39:52 -03:00 committed by GitHub
commit 096b59ff6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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