{stdenv, gcc5, fetchurl, xlibs, cmake, subversion, mesa, qt5, boost,
 python27, python27Packages}:

stdenv.mkDerivation rec {
  version = "201707";
  build_nr = "1";
  name = "mcrl2-${version}";

  src = fetchurl {
    url = "http://www.mcrl2.org/download/release/mcrl2-${version}.${build_nr}.tar.gz";
    sha256 = "1c8h94ja7271ph61zrcgnjgblxppld6v22f7f900prjgzbcfy14m";
  };

  buildInputs = [ gcc5 cmake mesa qt5.qtbase boost ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "A toolset for model-checking concurrent systems and protocols";
    longDescription = ''
      A formal specification language with an associated toolset,
      that can be used for modelling, validation and verification of
      concurrent systems and protocols
    '';
    homepage = http://www.mcrl2.org/;
    license = licenses.boost;
    maintainers = with maintainers; [ moretea ];
    platforms = platforms.unix;
  };
}

{stdenv, fetchurl, xlibs, cmake, subversion, mesa, qt5, boost,
 python27, python27Packages}:

stdenv.mkDerivation rec {
  version = "201707";
  build_nr = "1";
  name = "mcrl2-${version}";

  src = fetchurl {
    url = "http://www.mcrl2.org/download/release/mcrl2-${version}.${build_nr}.tar.gz";
    sha256 = "1c8h94ja7271ph61zrcgnjgblxppld6v22f7f900prjgzbcfy14m";
  };

  buildInputs = [ cmake mesa qt5.qtbase boost ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "A toolset for model-checking concurrent systems and protocols";
    longDescription = ''
      A formal specification language with an associated toolset,
      that can be used for modelling, validation and verification of
      concurrent systems and protocols
    '';
    homepage = http://www.mcrl2.org/;
    license = licenses.boost;
    maintainers = with maintainers; [ moretea ];
    platforms = platforms.unix;
  };
}

Revert "mcrl2: force use of gcc5 to prevent compilation errors"
Revert "mcrl2: force use of gcc5 to prevent compilation errors"

This reverts commit 5e5e57b57bc06119b63e07405a2550894e5bff83.

Already fixed with edd94f5fcd077a9e7eb80102cc076a8f8bfe3524.
