2016-07-20 13:51:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
2015-10-04 09:43:34 +01:00
|
|
|
|
2016-11-26 09:13:02 +00:00
|
|
|
let param = {
|
2017-02-27 18:57:26 +00:00
|
|
|
"4.02" = {
|
2016-11-26 09:13:02 +00:00
|
|
|
version = "5.0+4.02.0";
|
|
|
|
sha256 = "16drjk0qafjls8blng69qiv35a84wlafpk16grrg2i3x19p8dlj8"; };
|
2017-02-27 18:57:26 +00:00
|
|
|
"4.03" = {
|
2016-11-26 09:13:02 +00:00
|
|
|
version = "5.0+4.03.0";
|
|
|
|
sha256 = "061v1fl5z7z3ywi4ppryrlcywnvnqbsw83ppq72qmkc7ma4603jg"; };
|
2017-02-27 18:57:26 +00:00
|
|
|
"4.04" = {
|
2017-02-02 20:16:07 +00:00
|
|
|
version = "unstable-20161114";
|
|
|
|
rev = "49c08e2e4ea8fef88692cd1dcc1b38a9133f17ac";
|
|
|
|
sha256 = "0ywzfkf5brj33nwh49k9if8x8v433ral25f3nbklfc9vqr06zrfl"; };
|
2017-02-27 18:57:26 +00:00
|
|
|
"4.05" = {
|
|
|
|
version = "5.0+4.05.0";
|
|
|
|
sha256 = "1jvvhk6wnkvm7b9zph309ihsc0hyxfpahmxxrq19vx8c674jsdm4"; };
|
2017-10-25 23:35:19 +01:00
|
|
|
"4.06" = {
|
|
|
|
version = "5.1+4.06.0";
|
|
|
|
sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; };
|
2018-07-14 09:27:00 +01:00
|
|
|
"4.07" = {
|
|
|
|
version = "5.1+4.06.0";
|
|
|
|
sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; };
|
2019-08-14 16:35:19 +01:00
|
|
|
"4.08" = {
|
|
|
|
version = "5.3+4.08.0";
|
|
|
|
sha256 = "0vdmhs3hpmh5iclx4lzgdpf362m4l35zprxs73r84z1yhr4jcr4m"; };
|
2019-10-18 07:20:24 +01:00
|
|
|
"4.09" = {
|
|
|
|
version = "5.3+4.08.0";
|
|
|
|
sha256 = "0vdmhs3hpmh5iclx4lzgdpf362m4l35zprxs73r84z1yhr4jcr4m"; };
|
2019-09-09 00:38:31 +01:00
|
|
|
}.${ocaml.meta.branch};
|
2016-07-20 13:51:20 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2016-11-26 09:13:02 +00:00
|
|
|
name = "ocaml${ocaml.version}-ppx_tools-${param.version}";
|
2016-07-20 13:51:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alainfrisch";
|
|
|
|
repo = "ppx_tools";
|
2017-02-02 20:16:07 +00:00
|
|
|
rev = if param ? rev then param.rev else param.version;
|
2016-11-26 09:13:02 +00:00
|
|
|
inherit (param) sha256;
|
2016-07-20 13:51:20 +01:00
|
|
|
};
|
2015-10-04 09:43:34 +01:00
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
2019-11-20 11:32:19 +00:00
|
|
|
buildInputs = [ ocaml findlib ];
|
2015-10-04 09:43:34 +01:00
|
|
|
|
2016-07-20 13:51:20 +01:00
|
|
|
createFindlibDestdir = true;
|
2015-10-04 09:43:34 +01:00
|
|
|
|
2017-02-26 20:18:02 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2016-07-20 13:51:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools for authors of ppx rewriters";
|
|
|
|
homepage = http://www.lexifi.com/ppx_tools;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|