3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ppxlib/default.nix
2018-09-15 19:32:32 +00:00

35 lines
816 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
}:
stdenv.mkDerivation rec {
version = "0.3.0";
name = "ocaml${ocaml.version}-ppxlib-${version}";
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = "ppxlib";
rev = version;
sha256 = "0csp49jh7zgjnqh46mxbf322whlbmgy7v1a12nvxh97qg6i5fvsy";
};
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;
};
}