2014-08-21 13:24:43 +00:00
|
|
|
{stdenv, fetchurl, ocaml, findlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-10-08 18:44:22 +00:00
|
|
|
name = "ocaml-twt-0.93.2";
|
2014-08-21 13:24:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-08 18:44:22 +00:00
|
|
|
url = https://github.com/mlin/twt/archive/v0.93.2.tar.gz;
|
|
|
|
sha256 = "aec091fbd1e6c4d252cf9664237418b4bc8c7d6b7a17475589be78365397e768";
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-09-03 10:06:58 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installFlags = "PREFIX=$(out)";
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2014-09-21 10:02:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-21 13:24:43 +00:00
|
|
|
homepage = http://people.csail.mit.edu/mikelin/ocaml+twt/;
|
|
|
|
description = "“The Whitespace Thing” for OCaml";
|
2014-09-21 10:02:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-08-21 13:24:43 +00:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|