aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/ppx_deriving/default.nix
blob: 612a12bb418336406b4e4e0e5b45704661a568cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchzip, buildDunePackage
, cppo, ppxfind, ppx_tools, ppx_derivers, result, ounit, ocaml-migrate-parsetree
}:

buildDunePackage rec {
  pname = "ppx_deriving";
  version = "4.4.1";

  src = fetchzip {
    url = "https://github.com/ocaml-ppx/ppx_deriving/archive/v${version}.tar.gz";
    sha256 = "1map50w2a35y83bcd19p9yakdkhp04z5as2j2wlygi0b6s0a9vba";
  };

  buildInputs = [ ppxfind cppo ounit ];
  propagatedBuildInputs = [ ocaml-migrate-parsetree ppx_derivers ppx_tools result ];

  doCheck = true;

  meta = with lib; {
    description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";
    maintainers = [ maintainers.maurer ];
    license = licenses.mit;
  };
}