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";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "3.1.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";
|
|
|
|
sha256 = "sha256-0KngriGEpp5tcgK/43B9EEOdMacSQYYCNLGfAgRS7Mc=";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|