2022-01-31 20:43:06 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx }:
|
2019-06-18 20:24:25 +02:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "printbox";
|
2022-03-24 18:34:40 +01:00
|
|
|
version = "0.6.1";
|
2019-06-18 20:24:25 +02:00
|
|
|
|
2021-04-04 09:22:40 +02:00
|
|
|
useDune2 = true;
|
|
|
|
|
2022-01-31 20:43:06 +01:00
|
|
|
minimalOCamlVersion = "4.03";
|
2019-06-18 20:24:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = pname;
|
2022-01-31 20:43:06 +01:00
|
|
|
rev = "v${version}";
|
2022-03-24 18:34:40 +01:00
|
|
|
sha256 = "sha256-7u2ThRhM3vW4ItcFsK4ycgcaW0JcQOFoZZRq2kqbl+k=";
|
2019-06-18 20:24:25 +02:00
|
|
|
};
|
|
|
|
|
2022-01-31 20:43:06 +01:00
|
|
|
checkInputs = [ mdx.bin ];
|
2019-06-18 20:24:25 +02:00
|
|
|
|
2022-02-24 17:43:54 +01:00
|
|
|
# mdx is not available for OCaml < 4.08
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2019-06-18 20:24:25 +02:00
|
|
|
|
|
|
|
meta = {
|
2019-11-18 21:06:50 +01:00
|
|
|
homepage = "https://github.com/c-cube/printbox/";
|
2019-06-18 20:24:25 +02:00
|
|
|
description = "Allows to print nested boxes, lists, arrays, tables in several formats";
|
2019-09-20 07:28:59 +02:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2019-06-18 20:24:25 +02:00
|
|
|
};
|
|
|
|
}
|