9 lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
10 "twt is not available for OCaml ${ocaml.version}"
14 pname = "ocaml${ocaml.version}-twt";
17 src = fetchFromGitHub {
21 sha256 = "sha256-xbjLPd7P1KyuC3i6WHLBcdLwd14atcBsd5ER+l97KAk=";
33 mkdir -p $OCAMLFIND_DESTDIR
38 installFlags = [ "PREFIX=$(out)" ];
43 description = "“The Whitespace Thing” for OCaml";
44 homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
45 license = licenses.mit;
46 maintainers = [ maintainers.vbgl ];
47 mainProgram = "ocaml+twt";
48 inherit (ocaml.meta) platforms;