ocamlPackages.{atd,atdgen}: 2.2.1 → 2.4.1

main
Vincent Laporte 2 years ago committed by Vincent Laporte
parent 5a90feb76a
commit 100e796af2
  1. 20
      pkgs/development/ocaml-modules/atd/default.nix
  2. 25
      pkgs/development/ocaml-modules/atdgen/default.nix

@ -1,25 +1,17 @@
{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }:
{ lib, atdgen-codec-runtime, menhir, easy-format, buildDunePackage, which, re, nixosTests }:
buildDunePackage rec {
pname = "atd";
version = "2.2.1";
inherit (atdgen-codec-runtime) version src;
useDune2 = true;
minimumOCamlVersion = "4.02";
src = fetchurl {
url = "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz";
sha256 = "17jm79np69ixp53a4njxnlb1pg8sd1g47nm3nyki9clkc8d4qsyv";
};
minimalOCamlVersion = "4.08";
nativeBuildInputs = [ which menhir ];
propagatedBuildInputs = [ easy-format re ];
buildInputs = [ re ];
propagatedBuildInputs = [ easy-format ];
strictDeps = true;
doCheck = true;
passthru.tests = {
smoke-test = nixosTests.atd;
};
@ -27,7 +19,7 @@ buildDunePackage rec {
meta = with lib; {
homepage = "https://github.com/mjambon/atd";
description = "Syntax for cross-language type definitions";
license = licenses.bsd3;
license = licenses.mit;
maintainers = with maintainers; [ aij jwilberding ];
};
}

@ -1,26 +1,17 @@
{ buildDunePackage, atd, biniou, yojson }:
let runtime =
buildDunePackage {
pname = "atdgen-runtime";
inherit (atd) version useDune2 src;
propagatedBuildInputs = [ biniou yojson ];
meta = { inherit (atd.meta) license; };
}
; in
{ buildDunePackage, alcotest, atd, atdgen-codec-runtime, atdgen-runtime, biniou, re, yojson }:
buildDunePackage {
pname = "atdgen";
inherit (atd) version useDune2 src;
inherit (atdgen-codec-runtime) version src;
buildInputs = [ atd re ];
buildInputs = [ atd ];
propagatedBuildInputs = [ atdgen-runtime ];
propagatedBuildInputs = [ runtime ];
doCheck = true;
checkInputs = [ alcotest atdgen-codec-runtime ];
meta = {
meta = atd.meta // {
description = "Generates efficient JSON serializers, deserializers and validators";
inherit (atd.meta) license;
};
}

Loading…
Cancel
Save