lol
1{ stdenv, fetchurl, ocaml, camlp4, findlib, lablgtk-extras }:
2
3let pname = "gtktop-2.0"; in
4
5if stdenv.lib.versionAtLeast ocaml.version "4.06"
6then throw "${pname} is not available for OCaml ${ocaml.version}"
7else
8
9stdenv.mkDerivation {
10 name = "ocaml-${pname}";
11
12 src = fetchurl {
13 url = "http://zoggy.github.io/gtktop/${pname}.tar.gz";
14 sha256 = "0cpmnavvham9mwxknm6df90g9qxabcvn2kfwlf9mncqa0z3rknz6";
15 };
16
17 buildInputs = [ ocaml camlp4 findlib ];
18 propagatedBuildInputs = [ lablgtk-extras ];
19
20 createFindlibDestdir = true;
21
22 meta = {
23 homepage = http://zoggy.github.io/gtktop/;
24 description = "A small OCaml library to ease the creation of graphical toplevels";
25 license = stdenv.lib.licenses.lgpl3;
26 maintainers = with stdenv.lib.maintainers; [ vbgl ];
27 platforms = ocaml.meta.platforms or [];
28 };
29}