1{ lib, atdgen-codec-runtime, cmdliner, 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 buildInputs = [ cmdliner ];
11 propagatedBuildInputs = [ easy-format re yojson ];
12
13 passthru.tests = {
14 smoke-test = nixosTests.atd;
15 };
16
17 meta = with lib; {
18 description = "Syntax for cross-language type definitions";
19 homepage = "https://github.com/mjambon/atd";
20 license = licenses.mit;
21 maintainers = with maintainers; [ aij ];
22 mainProgram = "atdcat";
23 };
24}