anchor.diff: -{stdenv, fetchFromGitHub, which, m4, python, bison, flex, llvmPackages,
  +{stdenv, fetchFromGitHub, cmake, which, m4, python, bison, flex, llvmPackages,
   testedTargets ? ["sse2"] # the default test target is sse4, but that is not supported by all Hydra agents
   }:
   
  
positive.code:     sha256 = "1x07n2gaff3v32yvddrb659mx5gg12bnbsqbyfimp396wn04w60b";
    };
  
    # there are missing dependencies in the Makefile, causing sporadic build failures
    enableParallelBuilding = false;
  
    doCheck = stdenv.isLinux;
  
    buildInputs = with llvmPackages; [
      which
      m4
  
negative.code:   #  makeFlagsArray=( SHELL="${bash}/bin/bash -o pipefail" )
    #'';
  
    checkPhase = ''
      export ISPC_HOME=$PWD/bin
      for target in $testedTargets
      do
        echo "Testing target $target"
        echo "================================"
        echo
        (cd ../
         PATH=${llvmPackages.clang}/bin:$PATH python run_tests.py -t $target --non-interactive --verbose --file=test_output.log
         fgrep -q "No new fails"  test_output.log || exit 1)
      done
    '';
  
    cmakeFlags = [
      "-DCLANG_EXECUTABLE=${llvmPackages.clang}/bin/clang"
      "-DISPC_INCLUDE_EXAMPLES=OFF"
      "-DISPC_INCLUDE_UTILS=OFF"
      ];
  
    meta = with stdenv.lib; {
  