blob: 589eb91333707657b7b900b4ff1e5ea624467d9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
}:
stdenv.mkDerivation rec {
version = "0.3.1";
name = "ocaml${ocaml.version}-ppxlib-${version}";
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = "ppxlib";
rev = version;
sha256 = "0qpjl84x8abq9zivifb0k8ld7fa1lrhkbajmmccvfv06ja3as1v4";
};
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [
ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
];
buildPhase = "dune build";
inherit (dune) installPhase;
meta = {
description = "Comprehensive ppx tool set";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
}
|