mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
790 B
Nix
32 lines
790 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "printbox";
|
|
version = "0.6.1";
|
|
|
|
useDune2 = true;
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-cube";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-7u2ThRhM3vW4ItcFsK4ycgcaW0JcQOFoZZRq2kqbl+k=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|