ocamlPackages.atd: 4.0.0 → 4.1.0

ocamlPackages.atd-jsonlike: init at 4.1.0
ocamlPackages.atd-yamlx: init at 4.1.0
This commit is contained in:
Vincent Laporte
2026-04-16 06:51:03 +02:00
parent 3ded3dec5d
commit a9f0eef3a0
6 changed files with 56 additions and 5 deletions
@@ -0,0 +1,18 @@
{
buildDunePackage,
atd,
re,
}:
buildDunePackage {
pname = "atd-jsonlike";
inherit (atd) src version;
minimalOCamlVersion = "4.12";
propagatedBuildInputs = [ re ];
meta = (removeAttrs atd.meta [ "mainProgram" ]) // {
description = "Generic JSON-like AST for use with ATD code generators";
};
}
@@ -0,0 +1,19 @@
{
buildDunePackage,
atd-jsonlike,
yamlx,
}:
buildDunePackage {
pname = "atd-yamlx";
inherit (atd-jsonlike) version src;
propagatedBuildInputs = [
atd-jsonlike
yamlx
];
meta = atd-jsonlike.meta // {
description = "YAML-to-jsonlike bridge for use with ATD code generators";
};
}
@@ -6,11 +6,11 @@
buildDunePackage (finalAttrs: {
pname = "atdgen-codec-runtime";
version = "4.0.0";
version = "4.1.0";
src = fetchurl {
url = "https://github.com/ahrefs/atd/releases/download/${finalAttrs.version}/atd-${finalAttrs.version}.tbz";
hash = "sha256-NRT+TcTniGQLPpqf7DtbEG5vYJtZ0oUicB3hvS6pCfE=";
hash = "sha256-c7J+xg77vqYPMRy8oJwQS1U3vocz9HcnqfXth41uBGw=";
};
meta = {
@@ -1,12 +1,17 @@
{
lib,
buildDunePackage,
ocaml,
alcotest,
atd,
atd-jsonlike,
atd-yamlx,
atdgen-codec-runtime,
atdgen-runtime,
atdml,
biniou,
re,
python3,
yamlx,
}:
buildDunePackage {
@@ -20,15 +25,18 @@ buildDunePackage {
propagatedBuildInputs = [ atdgen-runtime ];
doCheck = true;
doCheck = lib.versionAtLeast ocaml.version "4.14";
nativeCheckInputs = [
atd
atdml
biniou
(python3.withPackages (ps: [ ps.jsonschema ]))
];
checkInputs = [
alcotest
atdgen-codec-runtime
yamlx
atd-jsonlike
atd-yamlx
];
meta = (removeAttrs atd.meta [ "mainProgram" ]) // {
@@ -9,6 +9,8 @@ buildDunePackage {
pname = "atdml";
inherit (atd) version src;
minimalOCamlVersion = "4.10";
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ atd ];
+4
View File
@@ -70,6 +70,10 @@ let
atd = callPackage ../development/ocaml-modules/atd { };
atd-jsonlike = callPackage ../development/ocaml-modules/atd/jsonlike.nix { };
atd-yamlx = callPackage ../development/ocaml-modules/atd/yamlx.nix { };
atdgen = callPackage ../development/ocaml-modules/atdgen { };
atdgen-codec-runtime = callPackage ../development/ocaml-modules/atdgen/codec-runtime.nix { };