blob: 940f6cf5107da194a7f606aee25f982379f34da1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, fetchzip, ocaml, findlib }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-twt-0.94.0";
src = fetchzip {
url = https://github.com/mlin/twt/archive/v0.94.0.tar.gz;
sha256 = "0298gdgzl4cifxnc1d8sbrvz1lkiq5r5ifkq1fparm6gvqywpf65";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
configurePhase = ''
mkdir $out/bin
'';
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
dontStrip = true;
meta = with stdenv.lib; {
homepage = http://people.csail.mit.edu/mikelin/ocaml+twt/;
description = "“The Whitespace Thing” for OCaml";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
};
}
|