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