2021-10-30 14:58:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2021-10-30 14:58:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-twt";
|
|
|
|
version = "0.94.0";
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2021-10-30 14:58:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mlin";
|
|
|
|
repo = "twt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-xbjLPd7P1KyuC3i6WHLBcdLwd14atcBsd5ER+l97KAk=";
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2014-08-21 13:24:43 +00:00
|
|
|
|
2021-09-28 19:53:23 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
2014-08-21 13:24:43 +00:00
|
|
|
'';
|
|
|
|
|
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; {
|
2014-08-21 13:24:43 +00:00
|
|
|
description = "“The Whitespace Thing” for OCaml";
|
2022-05-18 00:57:46 +00:00
|
|
|
homepage = "http://people.csail.mit.edu/mikelin/ocaml+twt/";
|
2014-09-21 10:02:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2022-05-18 00:57:46 +00:00
|
|
|
mainProgram = "ocaml+twt";
|
|
|
|
inherit (ocaml.meta) platforms;
|
2014-08-21 13:24:43 +00:00
|
|
|
};
|
|
|
|
}
|