nixpkgs/pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix
2018-12-12 09:34:38 +00:00

29 lines
782 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, topkg, cppo
, ppx_deriving, yojson, ounit
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ppx_deriving_yojson-${version}";
version = "3.1";
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = "ppx_deriving_yojson";
rev = "v${version}";
sha256 = "1pwfnq7z60nchba4gnf58918ll11w3gj5i88qhz1p2jm45hxqgnw";
};
buildInputs = [ ocaml findlib ocamlbuild cppo ounit ];
propagatedBuildInputs = [ ppx_deriving yojson ];
inherit (topkg) installPhase;
meta = {
description = "A Yojson codec generator for OCaml >= 4.02.";
inherit (src.meta) homepage;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}