1{ lib, fetchurl, buildDunePackage
2, dune-configurator
3, bos, ctypes, fmt, logs
4, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
5}:
6
7buildDunePackage rec {
8 pname = "yaml";
9 version = "3.1.0";
10
11 src = fetchurl {
12 url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-${version}.tbz";
13 sha256 = "sha256-0KngriGEpp5tcgK/43B9EEOdMacSQYYCNLGfAgRS7Mc=";
14 };
15
16 minimalOCamlVersion = "4.13";
17
18 buildInputs = [ dune-configurator ];
19 propagatedBuildInputs = [ bos ctypes ];
20
21 doCheck = true;
22 checkInputs = [ fmt logs mdx.bin alcotest crowbar junit_alcotest ezjsonm ];
23
24 meta = {
25 description = "Parse and generate YAML 1.1 files";
26 homepage = "https://github.com/avsm/ocaml-yaml";
27 license = lib.licenses.isc;
28 maintainers = [ lib.maintainers.vbgl ];
29 };
30
31}