ocamlPackages.ppx_deriving_yaml: init at 0.1.0 (#139635)

main
TG × ⊙ 3 years ago committed by GitHub
parent bc1974e35d
commit e753a9141a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 29
      pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix
  2. 2
      pkgs/top-level/ocaml-packages.nix

@ -0,0 +1,29 @@
{ lib, buildDunePackage, fetchurl, ppxlib, alcotest
, ppx_deriving, yaml
}:
buildDunePackage rec {
pname = "ppx_deriving_yaml";
version = "0.1.0";
useDune2 = true;
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/patricoferris/ppx_deriving_yaml/releases/download/v${version}/ppx_deriving_yaml-v${version}.tbz";
sha256 = "kdonUD4Y8QhVSAFAafIpXBFPkS4pSScYwJbaWMn/6pA=";
};
propagatedBuildInputs = [ ppxlib ppx_deriving yaml ];
doCheck = true;
checkInputs = [ alcotest ];
meta = {
description = "A YAML codec generator for OCaml";
homepage = "https://github.com/patricoferris/ppx_deriving_yaml";
license = lib.licenses.isc;
maintainers = [ ];
};
}

@ -1156,6 +1156,8 @@ let
ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {};
ppx_deriving_yaml = callPackage ../development/ocaml-modules/ppx_deriving_yaml {};
ppx_deriving_cmdliner = callPackage ../development/ocaml-modules/ppx_deriving_cmdliner {};
ppx_gen_rec = callPackage ../development/ocaml-modules/ppx_gen_rec {};

Loading…
Cancel
Save