Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
29 lines
769 B
Nix
29 lines
769 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "printbox";
|
|
version = "0.12";
|
|
|
|
minimalOCamlVersion = "4.04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-cube";
|
|
repo = pname;
|
|
rev = "v${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 ];
|
|
};
|
|
}
|