nixpkgs/pkgs/development/ocaml-modules/yaml/default.nix

29 lines
717 B
Nix
Raw Normal View History

2019-12-09 10:31:53 +00:00
{ lib, fetchurl, buildDunePackage
2020-10-16 11:26:19 +01:00
, dune-configurator
2019-12-09 10:31:53 +00:00
, ppx_sexp_conv
, bos, ctypes, fmt, logs, rresult, sexplib
}:
buildDunePackage rec {
pname = "yaml";
2020-10-16 11:26:19 +01:00
version = "2.1.0";
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";
2020-10-16 11:26:19 +01:00
sha256 = "03g8vsh5jgi1cm5q78v15slgnzifp91fp7n4v1i7pa8yk0bkh585";
2019-12-09 10:31:53 +00:00
};
2020-10-16 11:26:19 +01:00
buildInputs = [ dune-configurator ];
2019-12-09 10:31:53 +00:00
propagatedBuildInputs = [ bos ctypes fmt logs ppx_sexp_conv rresult sexplib ];
meta = {
description = "Parse and generate YAML 1.1 files";
homepage = "https://github.com/avsm/ocaml-yaml";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}