blob: 3440313bcb1a8f13d032486f2a34d22d57d9a1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
fetchFromGitHub,
buildDunePackage,
ocaml,
mdx,
gitUpdater,
}:
buildDunePackage (finalAttrs: {
pname = "printbox";
version = "0.12";
minimalOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "c-cube";
repo = "printbox";
rev = "v${finalAttrs.version}";
sha256 = "sha256-PQbr2sjASoWz0OHAMV6buAJERpnUJxVpLAigIVnADIc=";
};
nativeCheckInputs = [ mdx.bin ];
# mdx is not available for OCaml < 4.08
doCheck = lib.versionAtLeast ocaml.version "4.08";
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
homepage = "https://github.com/c-cube/printbox/";
description = "Allows to print nested boxes, lists, arrays, tables in several formats";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.romildo ];
};
})
|