summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/printbox/default.nix
blob: b42df087a9a6454362d35e20c96b9fcf680097b6 (plain) (blame)
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
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx }:

buildDunePackage rec {
  pname = "printbox";
  version = "0.6";

  useDune2 = true;

  minimalOCamlVersion = "4.03";

  src = fetchFromGitHub {
    owner = "c-cube";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256:0vqp8j1vp8h8par699nnh31hnikzh6pqn07lqyxw65axqy3sc9dp";
  };

  checkInputs = [ mdx.bin ];

  # mdx is not available for OCaml < 4.07
  doCheck = lib.versionAtLeast ocaml.version "4.07";

  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 ];
  };
}