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