1 { lib, stdenv, fetchFromGitHub, ocaml, findlib }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-twt";
7 src = fetchFromGitHub {
11 sha256 = "sha256-xbjLPd7P1KyuC3i6WHLBcdLwd14atcBsd5ER+l97KAk=";
14 nativeBuildInputs = [ ocaml findlib ];
20 mkdir -p $OCAMLFIND_DESTDIR
25 installFlags = [ "PREFIX=$(out)" ];
30 description = "“The Whitespace Thing” for OCaml";
31 homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
32 license = licenses.mit;
33 maintainers = [ maintainers.vbgl ];
34 mainProgram = "ocaml+twt";
35 inherit (ocaml.meta) platforms;