2021-11-30 19:48:32 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
|
2015-01-12 09:15:13 +00:00
|
|
|
|
2021-11-30 19:48:32 +00:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.02"
|
|
|
|
|| lib.versionAtLeast ocaml.version "4.13"
|
|
|
|
then throw "lablgtk-extras is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2015-01-12 09:15:13 +00:00
|
|
|
|
2017-10-07 06:29:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.6";
|
2022-02-06 22:35:27 +00:00
|
|
|
pname = "ocaml${ocaml.version}-lablgtk-extras";
|
2021-11-30 19:48:32 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "framagit.org";
|
2017-10-07 06:29:59 +01:00
|
|
|
owner = "zoggy";
|
|
|
|
repo = "lablgtk-extras";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "1bbdp5j18s582mmyd7qiaq1p08g2ag4gl7x65pmzahbhg719hjda";
|
2015-01-12 09:15:13 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib camlp4 ];
|
2015-01-12 09:15:13 +00:00
|
|
|
propagatedBuildInputs = [ config-file lablgtk xmlm ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2021-11-30 19:48:32 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2021-11-30 19:48:32 +00:00
|
|
|
homepage = "https://framagit.org/zoggy/lablgtk-extras/";
|
2015-01-12 09:15:13 +00:00
|
|
|
description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2015-01-12 09:15:13 +00:00
|
|
|
};
|
|
|
|
}
|