ocamlPackages.atdgen: 2.4.1 → 2.9.1

This commit is contained in:
Vincent Laporte 2022-07-02 05:31:40 +01:00
parent 1d6059cbd5
commit b6e7663556
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
3 changed files with 12 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, which, re, nixosTests }:
{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, re, yojson, nixosTests }:
buildDunePackage rec {
pname = "atd";
@ -6,9 +6,8 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
nativeBuildInputs = [ which menhir ];
buildInputs = [ re ];
propagatedBuildInputs = [ easy-format ];
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ easy-format re yojson ];
strictDeps = true;

View file

@ -2,11 +2,11 @@
buildDunePackage rec {
pname = "atdgen-codec-runtime";
version = "2.4.1";
version = "2.9.1";
src = fetchurl {
url = "https://github.com/ahrefs/atd/releases/download/${version}/atdgen-codec-runtime-${version}.tbz";
sha256 = "sha256:16888rnvhgh5yxxsnzsj10g5pzs1l4dn27n23kk2f4641dn26s3a";
url = "https://github.com/ahrefs/atd/releases/download/${version}/atdts-${version}.tbz";
sha256 = "sha256-OdwaUR0Ix0Oz8NDm36nIyvIRzF+r/pKgiej1fhcOmuQ=";
};
meta = {

View file

@ -1,4 +1,6 @@
{ buildDunePackage, alcotest, atd, atdgen-codec-runtime, atdgen-runtime, biniou, re, yojson }:
{ buildDunePackage, alcotest, atd, atdgen-codec-runtime, atdgen-runtime, biniou, re, yojson
, python3
}:
buildDunePackage {
pname = "atdgen";
@ -9,7 +11,9 @@ buildDunePackage {
propagatedBuildInputs = [ atdgen-runtime ];
doCheck = true;
checkInputs = [ alcotest atdgen-codec-runtime ];
checkInputs = [ alcotest atdgen-codec-runtime
(python3.withPackages (ps: [ ps.jsonschema ]))
];
meta = (builtins.removeAttrs atd.meta [ "mainProgram" ]) // {
description = "Generates efficient JSON serializers, deserializers and validators";