2015-10-04 00:17:33 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib }:
|
2014-08-21 14:24:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-06-25 20:56:39 +01:00
|
|
|
name = "ocaml${ocaml.version}-twt-0.94.0";
|
2014-08-21 14:24:43 +01:00
|
|
|
|
2015-10-04 00:17:33 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = https://github.com/mlin/twt/archive/v0.94.0.tar.gz;
|
|
|
|
sha256 = "0298gdgzl4cifxnc1d8sbrvz1lkiq5r5ifkq1fparm6gvqywpf65";
|
2014-08-21 14:24:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-09-03 11:06:58 +01:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installFlags = "PREFIX=$(out)";
|
2014-08-21 14:24:43 +01:00
|
|
|
|
2017-06-25 20:56:39 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2014-09-21 11:02:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-21 14:24:43 +01:00
|
|
|
homepage = http://people.csail.mit.edu/mikelin/ocaml+twt/;
|
|
|
|
description = "“The Whitespace Thing” for OCaml";
|
2014-09-21 11:02:55 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-08-21 14:24:43 +01:00
|
|
|
};
|
|
|
|
}
|