1 { stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
3 if lib.versionOlder ocaml.version "4.02"
4 || lib.versionAtLeast ocaml.version "4.13"
5 then throw "lablgtk-extras is not available for OCaml ${ocaml.version}"
8 stdenv.mkDerivation rec {
10 pname = "ocaml${ocaml.version}-lablgtk-extras";
11 src = fetchFromGitLab {
12 domain = "framagit.org";
14 repo = "lablgtk-extras";
15 rev = "release-${version}";
16 sha256 = "1bbdp5j18s582mmyd7qiaq1p08g2ag4gl7x65pmzahbhg719hjda";
21 nativeBuildInputs = [ ocaml findlib camlp4 ];
22 propagatedBuildInputs = [ config-file lablgtk xmlm ];
24 createFindlibDestdir = true;
27 inherit (ocaml.meta) platforms;
28 maintainers = with lib.maintainers; [ vbgl ];
29 homepage = "https://framagit.org/zoggy/lablgtk-extras/";
30 description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
31 license = lib.licenses.lgpl2Plus;