diff --git a/pkgs/development/tools/ocaml/cppo/default.nix b/pkgs/development/tools/ocaml/cppo/default.nix index 87db3baf0b0e..2f057ada92b9 100644 --- a/pkgs/development/tools/ocaml/cppo/default.nix +++ b/pkgs/development/tools/ocaml/cppo/default.nix @@ -23,7 +23,7 @@ buildDunePackage rec { inherit pname; version = "1.6.9"; - useDune2 = true; + duneVersion = "3"; src = fetchFromGitHub { owner = "ocaml-community"; diff --git a/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix b/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix index d0627480ea1c..3f1f436b076c 100644 --- a/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix +++ b/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix @@ -4,10 +4,13 @@ if lib.versionOlder (lib.getVersion cppo) "1.6" then cppo else -buildDunePackage rec { +buildDunePackage { pname = "cppo_ocamlbuild"; - inherit (cppo) version useDune2 src; + inherit (cppo) version src; + + minimalOCamlVersion = "4.03"; + duneVersion = "3"; propagatedBuildInputs = [ ocamlbuild ];