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

25 lines
707 B
Nix
Raw Normal View History

{ lib, fetchzip, buildDunePackage
, cppo, ppxfind, ppx_tools, ppx_derivers, result, ounit, ocaml-migrate-parsetree
2017-03-04 05:24:36 +00:00
}:
2016-09-13 22:50:18 +01:00
buildDunePackage rec {
pname = "ppx_deriving";
version = "4.5";
2016-09-13 22:50:18 +01:00
2017-03-04 05:24:36 +00:00
src = fetchzip {
url = "https://github.com/ocaml-ppx/ppx_deriving/archive/v${version}.tar.gz";
sha256 = "1v2xldag54n0xk69vv3j4nln9bzkkpq3rildq118sydzsc9v239z";
2016-09-13 22:50:18 +01:00
};
buildInputs = [ ppxfind cppo ounit ];
propagatedBuildInputs = [ ocaml-migrate-parsetree ppx_derivers ppx_tools result ];
doCheck = true;
2016-09-13 22:50:18 +01:00
meta = with lib; {
2016-09-13 22:50:18 +01:00
description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";
maintainers = [ maintainers.maurer ];
license = licenses.mit;
};
}