2021-12-19 01:06:50 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2021-12-19 01:06:50 +00:00
|
|
|
|| lib.versionAtLeast ocaml.version "4.13"
|
|
|
|
then throw "lablgtk-extras is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.6";
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "ocaml${ocaml.version}-lablgtk-extras";
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "framagit.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "zoggy";
|
|
|
|
repo = "lablgtk-extras";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "1bbdp5j18s582mmyd7qiaq1p08g2ag4gl7x65pmzahbhg719hjda";
|
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib camlp4 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ config-file lablgtk xmlm ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2021-12-19 01:06:50 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://framagit.org/zoggy/lablgtk-extras/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|