2018-09-05 18:11:47 +02:00
|
|
|
{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, dune, which, biniou, yojson }:
|
2017-06-27 20:10:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-15 10:45:42 +02:00
|
|
|
version = "2.0.0";
|
|
|
|
|
2017-06-27 20:10:25 +02:00
|
|
|
name = "ocaml${ocaml.version}-atd-${version}";
|
2015-05-25 22:42:07 +02:00
|
|
|
|
2018-08-15 10:45:42 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjambon";
|
|
|
|
repo = "atd";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia";
|
2015-05-25 22:42:07 +02:00
|
|
|
};
|
|
|
|
|
2017-06-27 20:10:25 +02:00
|
|
|
createFindlibDestdir = true;
|
2015-05-25 22:42:07 +02:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildInputs = [ which dune ocaml findlib menhir ];
|
2018-08-15 10:45:42 +02:00
|
|
|
propagatedBuildInputs = [ easy-format biniou yojson ];
|
|
|
|
|
|
|
|
buildPhase = "jbuilder build";
|
2018-09-05 18:11:47 +02:00
|
|
|
inherit (dune) installPhase;
|
2015-05-25 22:42:07 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/mjambon/atd;
|
|
|
|
description = "Syntax for cross-language type definitions";
|
|
|
|
license = licenses.bsd3;
|
2018-08-15 10:45:42 +02:00
|
|
|
maintainers = with maintainers; [ aij jwilberding ];
|
2015-05-25 22:42:07 +02:00
|
|
|
};
|
|
|
|
}
|