depot/third_party/nixpkgs/pkgs/development/ocaml-modules/printbox/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

29 lines
769 B
Nix

{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
buildDunePackage rec {
pname = "printbox";
version = "0.11";
minimalOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
rev = "v${version}";
sha256 = "sha256-f5iTesEakULlLdDGtX+5i3vesUIbFLjcV3kJ7ZPia0Y=";
};
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 ];
};
}