1{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, re, yojson, nixosTests }:
2
3buildDunePackage rec {
4 pname = "atd";
5 inherit (atdgen-codec-runtime) version src;
6
7 minimalOCamlVersion = "4.08";
8
9 nativeBuildInputs = [ menhir ];
10 propagatedBuildInputs = [ easy-format re yojson ];
11
12 strictDeps = true;
13
14 passthru.tests = {
15 smoke-test = nixosTests.atd;
16 };
17
18 meta = with lib; {
19 description = "Syntax for cross-language type definitions";
20 homepage = "https://github.com/mjambon/atd";
21 license = licenses.mit;
22 maintainers = with maintainers; [ aij ];
23 mainProgram = "atdcat";
24 };
25}