2016-07-20 14:51:20 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
2015-10-04 10:43:34 +02:00
|
|
|
|
2016-11-26 10:13:02 +01:00
|
|
|
let param = {
|
|
|
|
"4.02.3" = {
|
|
|
|
version = "5.0+4.02.0";
|
|
|
|
sha256 = "16drjk0qafjls8blng69qiv35a84wlafpk16grrg2i3x19p8dlj8"; };
|
|
|
|
"4.03.0" = {
|
|
|
|
version = "5.0+4.03.0";
|
|
|
|
sha256 = "061v1fl5z7z3ywi4ppryrlcywnvnqbsw83ppq72qmkc7ma4603jg"; };
|
|
|
|
}."${ocaml.version}";
|
2016-07-20 14:51:20 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2016-11-26 10:13:02 +01:00
|
|
|
name = "ocaml${ocaml.version}-ppx_tools-${param.version}";
|
2016-07-20 14:51:20 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alainfrisch";
|
|
|
|
repo = "ppx_tools";
|
2016-11-26 10:13:02 +01:00
|
|
|
rev = param.version;
|
|
|
|
inherit (param) sha256;
|
2016-07-20 14:51:20 +02:00
|
|
|
};
|
2015-10-04 10:43:34 +02:00
|
|
|
|
2016-07-20 14:51:20 +02:00
|
|
|
buildInputs = [ ocaml findlib ];
|
2015-10-04 10:43:34 +02:00
|
|
|
|
2016-07-20 14:51:20 +02:00
|
|
|
createFindlibDestdir = true;
|
2015-10-04 10:43:34 +02:00
|
|
|
|
2016-07-20 14:51:20 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|