2022-07-06 05:21:03 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-10-16 10:26:19 +00:00
|
|
|
, dune-configurator
|
2022-07-06 05:21:03 +00:00
|
|
|
, bos, ctypes, fmt, logs
|
2021-10-18 15:56:20 +00:00
|
|
|
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
|
2019-12-09 10:31:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yaml";
|
2023-11-10 04:44:41 +00:00
|
|
|
version = "3.2.0";
|
2019-12-09 10:31:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-06 05:21:03 +00:00
|
|
|
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-${version}.tbz";
|
2023-11-10 04:44:41 +00:00
|
|
|
hash = "sha256-xQ0qyii5+WZ5K3HhYDNR5dJO2k39PkRT+9UDZqOggic=";
|
2019-12-09 10:31:53 +00:00
|
|
|
};
|
|
|
|
|
2022-07-06 05:21:03 +00:00
|
|
|
minimalOCamlVersion = "4.13";
|
|
|
|
|
2020-10-16 10:26:19 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2022-07-06 05:21:03 +00:00
|
|
|
propagatedBuildInputs = [ bos ctypes ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeCheckInputs = [ mdx.bin ];
|
|
|
|
checkInputs = [ fmt logs alcotest crowbar junit_alcotest ezjsonm ];
|
2019-12-09 10:31:53 +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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|