2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip, ocaml, findlib }:
|
2014-08-21 13:24:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-06-25 19:56:39 +00:00
|
|
|
name = "ocaml${ocaml.version}-twt-0.94.0";
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2015-10-03 23:17:33 +00:00
|
|
|
src = fetchzip {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/mlin/twt/archive/v0.94.0.tar.gz";
|
2015-10-03 23:17:33 +00:00
|
|
|
sha256 = "0298gdgzl4cifxnc1d8sbrvz1lkiq5r5ifkq1fparm6gvqywpf65";
|
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;
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2017-06-25 19:56:39 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
|
2014-08-21 13:24:43 +00:00
|
|
|
description = "“The Whitespace Thing” for OCaml";
|
2014-09-21 10:02:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
}
|