bluespec: Add a simple installCheckPhase

This commit is contained in:
Artturin 2025-04-04 18:07:39 +03:00
parent 366a24706e
commit fd4d38d931

View File

@ -223,6 +223,7 @@ stdenv.mkDerivation rec {
'';
doCheck = true;
doInstallCheck = true;
# TODO To fix check-suite:
# On darwin
@ -281,6 +282,13 @@ stdenv.mkDerivation rec {
)
'';
installCheckPhase = ''
output="$($out/bin/bsc 2>&1 || true)"
echo "bsc output:"
echo "$output"
echo "$output" | grep -q "to get help"
'';
meta = {
description = "Toolchain for the Bluespec Hardware Definition Language";
homepage = "https://github.com/B-Lang-org/bsc";