ocamlPackages.lablgtk-extras: disable for OCaml ≥ 4.13

This commit is contained in:
Vincent Laporte 2021-11-30 20:48:32 +01:00 committed by Vincent Laporte
parent 9d426213b8
commit 391ee795d0

View file

@ -1,11 +1,15 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
{ stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
assert lib.versionAtLeast (lib.getVersion ocaml) "4.02";
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
stdenv.mkDerivation rec {
version = "1.6";
name = "ocaml${ocaml.version}-lablgtk-extras-${version}";
src = fetchFromGitHub {
src = fetchFromGitLab {
domain = "framagit.org";
owner = "zoggy";
repo = "lablgtk-extras";
rev = "release-${version}";
@ -18,9 +22,9 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
meta = {
platforms = ocaml.meta.platforms or [];
inherit (ocaml.meta) platforms;
maintainers = with lib.maintainers; [ vbgl ];
homepage = "http://gtk-extras.forge.ocamlcore.org/";
homepage = "https://framagit.org/zoggy/lablgtk-extras/";
description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
license = lib.licenses.lgpl2Plus;
};