Unverified Commit 6c20a6f6 authored by Yifei Sun's avatar Yifei Sun Committed by GitHub
Browse files

ocamlPackages.yamlx: init at 0.1.0 (#509853)

parents 9385ddb6 5d216b39
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
{
  lib,
  buildDunePackage,
  fetchurl,
  ppx_deriving,
  testo,
}:

buildDunePackage (finalAttrs: {
  pname = "yamlx";
  version = "0.1.0";

  src = fetchurl {
    url = "https://github.com/mjambon/yamlx/releases/download/${finalAttrs.version}/yamlx-${finalAttrs.version}.tbz";
    hash = "sha256-Ihar37R1dUFMXSgNGEJu5z6ysFMcrg1Hd74hNLletwE=";
  };

  propagatedBuildInputs = [ ppx_deriving ];

  doCheck = true;
  checkInputs = [ testo ];

  minimalOCamlVersion = "4.14";

  meta = {
    description = "Pure-OCaml YAML 1.2 parser with a lossless, comment-preserving AST";
    maintainers = [ lib.maintainers.vbgl ];
    license = lib.licenses.agpl3Only;
    homepage = "https://github.com/mjambon/yamlx";
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -2285,6 +2285,8 @@ let

        yaml-sexp = callPackage ../development/ocaml-modules/yaml/yaml-sexp.nix { };

        yamlx = callPackage ../development/ocaml-modules/yamlx { };

        yojson = callPackage ../development/ocaml-modules/yojson { };

        yojson_2 = yojson.overrideAttrs (_: {