Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
ocaml,
findlib,
camlp4,
config-file,
lablgtk,
xmlm,
}:
if lib.versionOlder 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";
pname = "ocaml${ocaml.version}-lablgtk-extras";
src = fetchFromGitLab {
domain = "framagit.org";
owner = "zoggy";
repo = "lablgtk-extras";
rev = "release-${version}";
sha256 = "1bbdp5j18s582mmyd7qiaq1p08g2ag4gl7x65pmzahbhg719hjda";
};
strictDeps = true;
nativeBuildInputs = [
ocaml
findlib
camlp4
];
propagatedBuildInputs = [
config-file
lablgtk
xmlm
];
createFindlibDestdir = true;
meta = {
inherit (ocaml.meta) platforms;
maintainers = with lib.maintainers; [ vbgl ];
homepage = "https://framagit.org/zoggy/lablgtk-extras/";
description = "Collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
license = lib.licenses.lgpl2Plus;
};
}