2022-07-14 12:49:19 +00:00
|
|
|
{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, re, yojson, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "atd";
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit (atdgen-codec-runtime) version src;
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
|
|
|
propagatedBuildInputs = [ easy-format re yojson ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.atd;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Syntax for cross-language type definitions";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/mjambon/atd";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.mit;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ aij ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "atdcat";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|