2022-07-14 12:49:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-10-27 00:29:36 +00:00
|
|
|
, dune-configurator
|
2022-07-14 12:49:19 +00:00
|
|
|
, bos, ctypes, fmt, logs
|
2021-10-17 09:34:42 +00:00
|
|
|
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yaml";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-${version}.tbz";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-xQ0qyii5+WZ5K3HhYDNR5dJO2k39PkRT+9UDZqOggic=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.13";
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [ bos ctypes ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeCheckInputs = [ mdx.bin ];
|
|
|
|
checkInputs = [ fmt logs alcotest crowbar junit_alcotest ezjsonm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Parse and generate YAML 1.1 files";
|
|
|
|
homepage = "https://github.com/avsm/ocaml-yaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|