2018-11-05 11:21:46 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildDunePackage
|
2020-03-06 07:42:04 +01:00
|
|
|
, version ? "0.8.1"
|
2018-07-05 21:40:30 +02:00
|
|
|
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
|
|
|
|
}:
|
|
|
|
|
2020-03-06 07:42:04 +01:00
|
|
|
let sha256 =
|
|
|
|
{ "0.8.1" = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
|
|
|
|
"0.12.0" = "1cg0is23c05k1rc94zcdz452p9zn11dpqxm1pnifwx5iygz3w0a1";
|
|
|
|
}."${version}"
|
|
|
|
; in
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppxlib";
|
2020-03-06 07:42:04 +01:00
|
|
|
inherit version;
|
2018-07-05 21:40:30 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-ppx";
|
2018-11-05 11:21:46 +01:00
|
|
|
repo = pname;
|
2018-07-05 21:40:30 +02:00
|
|
|
rev = version;
|
2020-03-06 07:42:04 +01:00
|
|
|
inherit sha256;
|
2018-07-05 21:40:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Comprehensive ppx tool set";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|