nixpkgs/pkgs/development/ocaml-modules/yaml/default.nix
Jules Aguillon ab8489cc40
Upgrade ocamlPackages.yaml and add ocamlPackages.yaml-sexp (#142089)
* ocamlPackages.yaml: 2.1.0 -> 3.0.0

Also added the checkInputs.

* Add ocamlPackage.yaml-sexp 3.0.0

The part of yaml that requires sexplib is moved to a second package.
2021-10-18 17:56:20 +02:00

30 lines
785 B
Nix

{ lib, fetchurl, buildDunePackage
, dune-configurator
, bos, ctypes, fmt, logs, rresult
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
}:
buildDunePackage rec {
pname = "yaml";
version = "3.0.0";
useDune2 = true;
src = fetchurl {
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-v${version}.tbz";
sha256 = "1iws6lbnrrd5hhmm7lczfvqp0aidx5xn7jlqk2s5rjfmj9qf4j2c";
};
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ bos ctypes rresult ];
checkInputs = [ fmt logs mdx alcotest crowbar junit_alcotest ezjsonm ];
meta = {
description = "Parse and generate YAML 1.1 files";
homepage = "https://github.com/avsm/ocaml-yaml";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}