diff --git a/pkgs/development/ocaml-modules/atdgen/codec-runtime.nix b/pkgs/development/ocaml-modules/atdgen/codec-runtime.nix index 494b8bcb3517..b3ea1fbc26fd 100644 --- a/pkgs/development/ocaml-modules/atdgen/codec-runtime.nix +++ b/pkgs/development/ocaml-modules/atdgen/codec-runtime.nix @@ -6,11 +6,11 @@ buildDunePackage rec { pname = "atdgen-codec-runtime"; - version = "2.15.0"; + version = "2.16.0"; src = fetchurl { url = "https://github.com/ahrefs/atd/releases/download/${version}/atd-${version}.tbz"; - hash = "sha256-ukJ5vtVNE9zz9nA6SzF0TbgV3yLAUC2ZZdbGdM4IOTM="; + hash = "sha256-Wea0RWICQcvWkBqEKzNmg6+w6xJbOtv+4ovZTNVODe8="; }; meta = { diff --git a/pkgs/development/ocaml-modules/atdgen/default.nix b/pkgs/development/ocaml-modules/atdgen/default.nix index d36b364c2cd7..555e336dcfc6 100644 --- a/pkgs/development/ocaml-modules/atdgen/default.nix +++ b/pkgs/development/ocaml-modules/atdgen/default.nix @@ -4,6 +4,7 @@ atd, atdgen-codec-runtime, atdgen-runtime, + biniou, re, python3, }: @@ -12,8 +13,6 @@ buildDunePackage { pname = "atdgen"; inherit (atdgen-codec-runtime) version src; - duneVersion = "3"; - buildInputs = [ atd re @@ -24,6 +23,7 @@ buildDunePackage { doCheck = true; nativeCheckInputs = [ atd + biniou (python3.withPackages (ps: [ ps.jsonschema ])) ]; checkInputs = [ diff --git a/pkgs/development/ocaml-modules/atdgen/runtime.nix b/pkgs/development/ocaml-modules/atdgen/runtime.nix index f0442d46a30f..547dfd32d0dd 100644 --- a/pkgs/development/ocaml-modules/atdgen/runtime.nix +++ b/pkgs/development/ocaml-modules/atdgen/runtime.nix @@ -10,7 +10,6 @@ buildDunePackage rec { inherit (atdgen-codec-runtime) version src; minimalOCamlVersion = "4.08"; - duneVersion = "3"; propagatedBuildInputs = [ biniou diff --git a/pkgs/development/ocaml-modules/elpi/default.nix b/pkgs/development/ocaml-modules/elpi/default.nix index a9dc8597b8dd..bf928b090e4a 100644 --- a/pkgs/development/ocaml-modules/elpi/default.nix +++ b/pkgs/development/ocaml-modules/elpi/default.nix @@ -3,6 +3,7 @@ , ocaml , menhir, menhirLib , atdgen +, atdgen-runtime , stdlib-shims , re, perl, ncurses , ppxlib, ppx_deriving @@ -47,12 +48,11 @@ in buildDunePackage { minimalOCamlVersion = "4.07"; - # atdgen is both a library and executable nativeBuildInputs = [ perl ] ++ [ (if lib.versionAtLeast version "1.15" || version == "dev" then menhir else camlp5) ] ++ lib.optional (lib.versionAtLeast version "1.16" || version == "dev") atdgen; buildInputs = [ ncurses ] - ++ lib.optional (lib.versionAtLeast version "1.16" || version == "dev") atdgen; + ++ lib.optional (lib.versionAtLeast version "1.16" || version == "dev") atdgen-runtime; propagatedBuildInputs = [ re stdlib-shims ] ++ (if lib.versionAtLeast version "1.15" || version == "dev" @@ -73,5 +73,7 @@ in buildDunePackage { postPatch = '' substituteInPlace elpi_REPL.ml --replace-warn "tput cols" "${ncurses}/bin/tput cols" + '' + lib.optionalString (lib.versionAtLeast version "1.16" || version == "dev") '' + substituteInPlace src/dune --replace-warn ' atdgen re' ' atdgen-runtime re' ''; } diff --git a/pkgs/development/ocaml-modules/github/data.nix b/pkgs/development/ocaml-modules/github/data.nix index 9d7544d34bde..eea986e09590 100644 --- a/pkgs/development/ocaml-modules/github/data.nix +++ b/pkgs/development/ocaml-modules/github/data.nix @@ -3,13 +3,16 @@ github, yojson, atdgen, + atdgen-runtime, }: buildDunePackage { pname = "github-data"; inherit (github) version src; - duneVersion = "3"; + postPatch = '' + substituteInPlace lib_data/dune --replace-warn 'atdgen)' 'atdgen-runtime)' + ''; nativeBuildInputs = [ atdgen @@ -17,7 +20,7 @@ buildDunePackage { propagatedBuildInputs = [ yojson - atdgen + atdgen-runtime ]; meta = github.meta // { diff --git a/pkgs/development/ocaml-modules/gitlab/default.nix b/pkgs/development/ocaml-modules/gitlab/default.nix index f8bc6224cf70..08b500bba423 100644 --- a/pkgs/development/ocaml-modules/gitlab/default.nix +++ b/pkgs/development/ocaml-modules/gitlab/default.nix @@ -5,6 +5,7 @@ uri, cohttp-lwt, atdgen, + atdgen-runtime, yojson, iso8601, stringext, @@ -21,6 +22,10 @@ buildDunePackage rec { hash = "sha256-7pUpH1SoP4eW8ild5j+Tcy+aTXq0+eSkhKUOXJ6Z30k="; }; + postPatch = '' + substituteInPlace lib/dune --replace-warn 'atdgen str' 'atdgen-runtime str' + ''; + minimalOCamlVersion = "4.08"; buildInputs = [ stringext ]; @@ -30,7 +35,7 @@ buildDunePackage rec { propagatedBuildInputs = [ uri cohttp-lwt - atdgen + atdgen-runtime yojson iso8601 ]; diff --git a/pkgs/development/ocaml-modules/reason-native/refmterr.nix b/pkgs/development/ocaml-modules/reason-native/refmterr.nix index 35b127a9d218..a9fa995f1700 100644 --- a/pkgs/development/ocaml-modules/reason-native/refmterr.nix +++ b/pkgs/development/ocaml-modules/reason-native/refmterr.nix @@ -2,6 +2,7 @@ lib, buildDunePackage, atdgen, + atdgen-runtime, re, reason, pastel, @@ -14,13 +15,17 @@ buildDunePackage { pname = "refmterr"; version = "3.3.0-unstable-2024-05-07"; + postPatch = '' + substituteInPlace src/refmterr/lib/dune --replace-warn 'atdgen re' 'atdgen-runtime re' + ''; + nativeBuildInputs = [ atdgen reason ]; propagatedBuildInputs = [ - atdgen + atdgen-runtime re pastel ];