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.

33 lines
827 B
Nix
Raw Normal View History

{ lib, fetchurl, buildDunePackage
2020-10-16 10:26:19 +00:00
, dune-configurator
, bos, ctypes, fmt, logs
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
2019-12-09 10:31:53 +00:00
}:
buildDunePackage rec {
pname = "yaml";
2023-11-10 04:44:41 +00:00
version = "3.2.0";
2019-12-09 10:31:53 +00:00
src = fetchurl {
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-${version}.tbz";
2023-11-10 04:44:41 +00:00
hash = "sha256-xQ0qyii5+WZ5K3HhYDNR5dJO2k39PkRT+9UDZqOggic=";
2019-12-09 10:31:53 +00:00
};
minimalOCamlVersion = "4.13";
2020-10-16 10:26:19 +00:00
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ bos ctypes ];
doCheck = true;
nativeCheckInputs = [ mdx.bin ];
checkInputs = [ fmt logs 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 ];
};
}