2018-07-09 18:15:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocaml-migrate-parsetree }:
|
2017-04-08 12:34:41 +01:00
|
|
|
|
2018-07-09 18:15:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-ppx_tools_versioned-${version}";
|
2018-03-21 04:45:35 +00:00
|
|
|
version = "5.1";
|
2017-04-08 12:34:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "let-def";
|
|
|
|
repo = "ppx_tools_versioned";
|
|
|
|
rev = version;
|
2018-03-21 04:45:35 +00:00
|
|
|
sha256 = "1c7kvca67qpyr4hiy492yik5x31lmkhyhy5wpl0l0fbx7fr7l624";
|
2017-04-08 12:34:41 +01:00
|
|
|
};
|
|
|
|
|
2018-07-09 18:15:33 +01:00
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
2017-04-08 12:34:41 +01:00
|
|
|
propagatedBuildInputs = [ ocaml-migrate-parsetree ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/let-def/ppx_tools_versioned;
|
|
|
|
description = "Tools for authors of syntactic tools (such as ppx rewriters)";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
};
|
|
|
|
}
|