2019-12-09 10:31:53 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-10-16 11:26:19 +01:00
|
|
|
, dune-configurator
|
2021-10-18 16:56:20 +01:00
|
|
|
, bos, ctypes, fmt, logs, rresult
|
|
|
|
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
|
2019-12-09 10:31:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yaml";
|
2021-10-18 16:56:20 +01:00
|
|
|
version = "3.0.0";
|
2020-10-16 11:26:19 +01:00
|
|
|
|
|
|
|
useDune2 = true;
|
2019-12-09 10:31:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-v${version}.tbz";
|
2021-10-18 16:56:20 +01:00
|
|
|
sha256 = "1iws6lbnrrd5hhmm7lczfvqp0aidx5xn7jlqk2s5rjfmj9qf4j2c";
|
2019-12-09 10:31:53 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 11:26:19 +01:00
|
|
|
buildInputs = [ dune-configurator ];
|
2021-10-18 16:56:20 +01:00
|
|
|
propagatedBuildInputs = [ bos ctypes rresult ];
|
|
|
|
checkInputs = [ fmt logs mdx 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|