about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/atd/default.nix
blob: 61dd0f1084c1f8f123959b7247159ff961c80b6f (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
{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, re, yojson, nixosTests }:

buildDunePackage rec {
  pname = "atd";
  inherit (atdgen-codec-runtime) version src;

  minimalOCamlVersion = "4.08";

  nativeBuildInputs = [ menhir ];
  propagatedBuildInputs = [ easy-format re yojson ];

  strictDeps = true;

  passthru.tests = {
    smoke-test = nixosTests.atd;
  };

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