about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/atd/default.nix
blob: 52a1fc36921c459db8e4115c18cc78d0c2a8fe16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, jbuilder, which, biniou, yojson }:

stdenv.mkDerivation rec {
  version = "2.0.0";

  name = "ocaml${ocaml.version}-atd-${version}";

  src = fetchFromGitHub {
    owner = "mjambon";
    repo = "atd";
    rev = version;
    sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia";
  };

  createFindlibDestdir = true;

  buildInputs = [ which jbuilder ocaml findlib menhir ];
  propagatedBuildInputs = [ easy-format biniou yojson ];

  buildPhase = "jbuilder build";
  inherit (jbuilder) installPhase;

  meta = with stdenv.lib; {
    homepage = https://github.com/mjambon/atd;
    description = "Syntax for cross-language type definitions";
    license = licenses.bsd3;
    maintainers = with maintainers; [ aij jwilberding ];
  };
}