nixpkgs/pkgs/development/ocaml-modules/printbox/default.nix

30 lines
726 B
Nix
Raw Normal View History

2021-04-04 07:22:40 +00:00
{ lib, fetchFromGitHub, buildDunePackage, ocaml, uucp, uutf, mdx }:
2019-06-18 18:24:25 +00:00
buildDunePackage rec {
pname = "printbox";
2021-04-04 07:22:40 +00:00
version = "0.5";
2019-06-18 18:24:25 +00:00
2021-04-04 07:22:40 +00:00
useDune2 = true;
minimumOCamlVersion = "4.03";
2019-06-18 18:24:25 +00:00
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
rev = version;
2021-04-04 07:22:40 +00:00
sha256 = "099yxpp7d9bms6dwzp9im7dv1qb801hg5rx6awpx3rpfl4cvqfn2";
2019-06-18 18:24:25 +00:00
};
2021-04-04 07:22:40 +00:00
checkInputs = [ uucp uutf mdx.bin ];
2019-06-18 18:24:25 +00:00
2021-04-04 07:22:40 +00:00
# mdx is not available for OCaml < 4.07
doCheck = lib.versionAtLeast ocaml.version "4.07";
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";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.romildo ];
2019-06-18 18:24:25 +00:00
};
}