1{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
2
3buildDunePackage rec {
4 pname = "printbox";
5 version = "0.6.1";
6
7 useDune2 = true;
8
9 minimalOCamlVersion = "4.03";
10
11 src = fetchFromGitHub {
12 owner = "c-cube";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "sha256-7u2ThRhM3vW4ItcFsK4ycgcaW0JcQOFoZZRq2kqbl+k=";
16 };
17
18 checkInputs = [ mdx.bin ];
19
20 # mdx is not available for OCaml < 4.08
21 doCheck = lib.versionAtLeast ocaml.version "4.08";
22
23 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
24
25 meta = {
26 homepage = "https://github.com/c-cube/printbox/";
27 description = "Allows to print nested boxes, lists, arrays, tables in several formats";
28 license = lib.licenses.isc;
29 maintainers = [ lib.maintainers.romildo ];
30 };
31}