2022-10-23 12:01:16 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
|
2019-06-18 18:24:25 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "printbox";
|
2024-10-09 12:53:53 +00:00
|
|
|
version = "0.12";
|
2019-06-18 18:24:25 +00:00
|
|
|
|
2024-09-27 05:56:39 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2019-06-18 18:24:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = pname;
|
2022-01-31 19:43:06 +00:00
|
|
|
rev = "v${version}";
|
2024-10-09 12:53:53 +00:00
|
|
|
sha256 = "sha256-PQbr2sjASoWz0OHAMV6buAJERpnUJxVpLAigIVnADIc=";
|
2019-06-18 18:24:25 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ mdx.bin ];
|
2019-06-18 18:24:25 +00:00
|
|
|
|
2022-02-24 16:43:54 +00:00
|
|
|
# mdx is not available for OCaml < 4.08
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2019-06-18 18:24:25 +00:00
|
|
|
|
2022-10-23 12:01:16 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
|
2019-06-18 18:24:25 +00:00
|
|
|
meta = {
|
2019-11-18 20:06:50 +00:00
|
|
|
homepage = "https://github.com/c-cube/printbox/";
|
2019-06-18 18:24:25 +00:00
|
|
|
description = "Allows to print nested boxes, lists, arrays, tables in several formats";
|
2019-09-20 05:28:59 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2019-06-18 18:24:25 +00:00
|
|
|
};
|
|
|
|
}
|