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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
802 B
Nix
Raw Normal View History

{ lib, fetchurl, buildDunePackage
2020-10-16 12:26:19 +02:00
, dune-configurator
, bos, ctypes, fmt, logs
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
2019-12-09 11:31:53 +01:00
}:
buildDunePackage rec {
pname = "yaml";
version = "3.1.0";
2019-12-09 11:31:53 +01:00
src = fetchurl {
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-${version}.tbz";
sha256 = "sha256-0KngriGEpp5tcgK/43B9EEOdMacSQYYCNLGfAgRS7Mc=";
2019-12-09 11:31:53 +01:00
};
minimalOCamlVersion = "4.13";
2020-10-16 12:26:19 +02:00
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ bos ctypes ];
doCheck = true;
checkInputs = [ fmt logs mdx.bin alcotest crowbar junit_alcotest ezjsonm ];
2019-12-09 11:31:53 +01: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 ];
};
}