Commit fd4d38d9 authored by Artturin's avatar Artturin
Browse files

bluespec: Add a simple `installCheckPhase`

parent 366a2470
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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";