···11+{ stdenv, lib, make, fetchgit, ocaml }:
22+33+let
44+ version = "20170720";
55+in
66+77+stdenv.mkDerivation {
88+ name = "coq2html-${version}";
99+1010+ src = fetchgit {
1111+ url = "https://github.com/xavierleroy/coq2html";
1212+ rev = "e2b94093c6b9a877717f181765e30577de22439e";
1313+ sha256 = "1x466j0pyjggyz0870pdllv9f5vpnfrgkd0w7ajvm9rkwyp3f610";
1414+ };
1515+1616+ buildInputs = [ make ocaml ];
1717+1818+ installPhase = ''
1919+ mkdir -p $out/bin
2020+ cp coq2html $out/bin
2121+ '';
2222+2323+ meta = with stdenv.lib; {
2424+ description = "coq2html is an HTML documentation generator for Coq source files";
2525+ longDescription = ''
2626+ coq2html is an HTML documentation generator for Coq source files. It is
2727+ an alternative to the standard coqdoc documentation generator
2828+ distributed along with Coq. The major feature of coq2html is its ability
2929+ to fold proof scripts: in the generated HTML, proof scripts are
3030+ initially hidden, but can be revealed one by one by clicking on the
3131+ "Proof" keyword.
3232+ '';
3333+ homepage = https://github.com/xavierleroy/coq2html;
3434+ license = licenses.gpl2;
3535+ maintainers = with maintainers; [ jwiegley ];
3636+ platforms = platforms.unix;
3737+ };
3838+}