diff --git a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
index b8affabb8647..e8fdcf82f664 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
@@ -189,7 +189,22 @@
doInstallCheck is set. (Note that this
change will not cause breakage to derivations with
strictDeps unset, which are most packages
- except python, rust and go packages).
+ except python, rust, ocaml and go packages).
+
+
+
+
+ buildDunePackage now defaults to
+ strictDeps = true which means that any
+ library should go into buildInputs or
+ checkInputs. Any executable that is run on
+ the building machine should go into
+ nativeBuildInputs or
+ nativeCheckInputs respectively. Example of
+ executables are ocaml,
+ findlib and menhir. PPXs
+ are libraries which are built by dune and should therefore not
+ go into nativeBuildInputs.
diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md
index 96f67673211d..38cad40fffb6 100644
--- a/nixos/doc/manual/release-notes/rl-2305.section.md
+++ b/nixos/doc/manual/release-notes/rl-2305.section.md
@@ -54,7 +54,9 @@ In addition to numerous new and upgraded packages, this release has the followin
- `carnix` and `cratesIO` has been removed due to being unmaintained, use alternatives such as [naersk](https://github.com/nix-community/naersk) and [crate2nix](https://github.com/kolloch/crate2nix) instead.
-- `checkInputs` have been renamed to `nativeCheckInputs`, because they behave the same as `nativeBuildInputs` when `doCheck` is set. `checkInputs` now denote a new type of dependencies, added to `buildInputs` when `doCheck` is set. As a rule of thumb, `nativeCheckInputs` are tools on `$PATH` used during the tests, and `checkInputs` are libraries which are linked to executables built as part of the tests. Similarly, `installCheckInputs` are renamed to `nativeInstallCheckInputs`, corresponding to `nativeBuildInputs`, and `installCheckInputs` are a new type of dependencies added to `buildInputs` when `doInstallCheck` is set. (Note that this change will not cause breakage to derivations with `strictDeps` unset, which are most packages except python, rust and go packages).
+- `checkInputs` have been renamed to `nativeCheckInputs`, because they behave the same as `nativeBuildInputs` when `doCheck` is set. `checkInputs` now denote a new type of dependencies, added to `buildInputs` when `doCheck` is set. As a rule of thumb, `nativeCheckInputs` are tools on `$PATH` used during the tests, and `checkInputs` are libraries which are linked to executables built as part of the tests. Similarly, `installCheckInputs` are renamed to `nativeInstallCheckInputs`, corresponding to `nativeBuildInputs`, and `installCheckInputs` are a new type of dependencies added to `buildInputs` when `doInstallCheck` is set. (Note that this change will not cause breakage to derivations with `strictDeps` unset, which are most packages except python, rust, ocaml and go packages).
+
+- `buildDunePackage` now defaults to `strictDeps = true` which means that any library should go into `buildInputs` or `checkInputs`. Any executable that is run on the building machine should go into `nativeBuildInputs` or `nativeCheckInputs` respectively. Example of executables are `ocaml`, `findlib` and `menhir`. PPXs are libraries which are built by dune and should therefore not go into `nativeBuildInputs`.
- `borgbackup` module now has an option for inhibiting system sleep while backups are running, defaulting to off (not inhibiting sleep), available as [`services.borgbackup.jobs..inhibitsSleep`](#opt-services.borgbackup.jobs._name_.inhibitsSleep).
diff --git a/pkgs/applications/misc/llpp/default.nix b/pkgs/applications/misc/llpp/default.nix
index b1d3a5c0d6fc..443a03c2ad22 100644
--- a/pkgs/applications/misc/llpp/default.nix
+++ b/pkgs/applications/misc/llpp/default.nix
@@ -19,8 +19,10 @@ stdenv.mkDerivation rec {
src = ./fix-build-bash.patch;
});
- nativeBuildInputs = [ makeWrapper ];
- buildInputs = [ ocaml mupdf libX11 libGLU libGL freetype zlib gumbo jbig2dec openjpeg libjpeg lcms2 harfbuzz ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper ocaml ];
+ buildInputs = [ mupdf libX11 libGLU libGL freetype zlib gumbo jbig2dec openjpeg libjpeg lcms2 harfbuzz ];
dontStrip = true;
diff --git a/pkgs/applications/misc/orpie/default.nix b/pkgs/applications/misc/orpie/default.nix
index ffb62dd6c199..a7366d6136ff 100644
--- a/pkgs/applications/misc/orpie/default.nix
+++ b/pkgs/applications/misc/orpie/default.nix
@@ -19,7 +19,8 @@ ocamlPackages.buildDunePackage rec {
substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out
'';
- buildInputs = with ocamlPackages; [ curses camlp5 num gsl ];
+ nativeBuildInputs = [ ocamlPackages.camlp5 ];
+ buildInputs = with ocamlPackages; [ curses num gsl ];
meta = {
inherit (src.meta) homepage;
diff --git a/pkgs/applications/misc/stog/default.nix b/pkgs/applications/misc/stog/default.nix
index 1d6373592fbf..c840bbfe5b84 100644
--- a/pkgs/applications/misc/stog/default.nix
+++ b/pkgs/applications/misc/stog/default.nix
@@ -20,7 +20,8 @@ buildDunePackage rec {
sha256 = "sha256:0krj5w4y05bcfx7hk9blmap8avl31gp7yi01lpqzs6ync23mvm0x";
};
- buildInputs = [ fmt lwt_ppx menhir ocf_ppx ppx_blob xtmpl_ppx ];
+ nativeBuildInputs = [ menhir ];
+ buildInputs = [ fmt lwt_ppx ocf_ppx ppx_blob xtmpl_ppx ];
propagatedBuildInputs = [
dune-build-info
dune-site
diff --git a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix
index 81062c1eb7c5..2367f847d107 100644
--- a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix
+++ b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
};
doCheck = true;
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
buildInputs = [ extlib ocamlfuse gapi-ocaml ocaml_sqlite3 tiny_httpd ];
diff --git a/pkgs/applications/networking/p2p/mldonkey/default.nix b/pkgs/applications/networking/p2p/mldonkey/default.nix
index fda9d87681a9..1291caa088ff 100644
--- a/pkgs/applications/networking/p2p/mldonkey/default.nix
+++ b/pkgs/applications/networking/p2p/mldonkey/default.nix
@@ -27,13 +27,9 @@ stdenv.mkDerivation rec {
'${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
'';
- buildInputs = (with ocamlPackages; [
- ocaml
- camlp4
- num
- ]) ++ [
- zlib
- ];
+ strictDeps = true;
+ nativeBuildInputs = with ocamlPackages; [ ocaml camlp4];
+ buildInputs = (with ocamlPackages; [ num ]) ++ [ zlib ];
meta = {
broken = stdenv.isDarwin;
diff --git a/pkgs/applications/networking/sync/unison/default.nix b/pkgs/applications/networking/sync/unison/default.nix
index 97ee3ed58625..c6ce7c8f593a 100644
--- a/pkgs/applications/networking/sync/unison/default.nix
+++ b/pkgs/applications/networking/sync/unison/default.nix
@@ -23,9 +23,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-taA8eZ/wOe9uMccXVYfe34/XzWgqYKA3tLZnIOahOrQ=";
};
- nativeBuildInputs = [ makeWrapper ]
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper ocamlPackages.ocaml ]
++ lib.optional enableX11 copyDesktopItems;
- buildInputs = [ ocamlPackages.ocaml ncurses ];
+ buildInputs = [ ncurses ];
preBuild = lib.optionalString enableX11 ''
sed -i "s|\(OCAMLOPT=.*\)$|\1 -I $(echo "${ocamlPackages.lablgtk}"/lib/ocaml/*/site-lib/lablgtk2)|" src/Makefile.OCaml
diff --git a/pkgs/applications/science/logic/abella/default.nix b/pkgs/applications/science/logic/abella/default.nix
index 3d752b7d7b93..1d0c72359cfc 100644
--- a/pkgs/applications/science/logic/abella/default.nix
+++ b/pkgs/applications/science/logic/abella/default.nix
@@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-/eOiebMFHgrurtrSHPlgZO3xmmxBOUmyAzswXZLd3Yc=";
};
- buildInputs = [ rsync ] ++ (with ocamlPackages; [ ocaml ocamlbuild findlib ]);
+ strictDeps = true;
+
+ nativeBuildInputs = [ rsync ] ++ (with ocamlPackages; [ ocaml ocamlbuild findlib ]);
installPhase = ''
mkdir -p $out/bin
diff --git a/pkgs/applications/science/logic/acgtk/default.nix b/pkgs/applications/science/logic/acgtk/default.nix
index d4f0ac3e5044..c627b8a3c8f5 100644
--- a/pkgs/applications/science/logic/acgtk/default.nix
+++ b/pkgs/applications/science/logic/acgtk/default.nix
@@ -13,11 +13,19 @@ stdenv.mkDerivation {
sha256 = "sha256-W/BDhbng5iYuiB7desMKvRtDFdhoaxiJNvNvtbLlA6E=";
};
- buildInputs = [ dune_2 ] ++ (with ocamlPackages; [
- ocaml findlib ansiterminal cairo2 cmdliner fmt logs menhir menhirLib mtime sedlex yojson
- ]);
+ strictDeps = true;
- buildPhase = "dune build --profile=release";
+ nativeBuildInputs = with ocamlPackages; [ menhir ocaml findlib dune_2 ];
+
+ buildInputs = with ocamlPackages; [
+ ansiterminal cairo2 cmdliner fmt logs menhirLib mtime sedlex yojson
+ ];
+
+ buildPhase = ''
+ runHook preBuild
+ dune build --profile=release ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
+ runHook postBuild
+ '';
installPhase = ''
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
diff --git a/pkgs/applications/science/logic/cryptoverif/default.nix b/pkgs/applications/science/logic/cryptoverif/default.nix
index 195dd98aa3b4..f056b3e433fb 100644
--- a/pkgs/applications/science/logic/cryptoverif/default.nix
+++ b/pkgs/applications/science/logic/cryptoverif/default.nix
@@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-F5eVN5ATYo9Ivpi2eYh96ktuTWUeoqgWMR4BqHu8EFs=";
};
- buildInputs = [ ocaml ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml ];
/* Fix up the frontend to load the 'default' cryptoverif library
** from under $out/libexec. By default, it expects to find the files
diff --git a/pkgs/applications/science/logic/ekrhyper/default.nix b/pkgs/applications/science/logic/ekrhyper/default.nix
index d6d9bb11a9a0..187cbc9a92ae 100644
--- a/pkgs/applications/science/logic/ekrhyper/default.nix
+++ b/pkgs/applications/science/logic/ekrhyper/default.nix
@@ -9,10 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-fEe0DIMGj7wO+79/BZf45kykgyTXpbZJsyFSt31XqpM=";
};
- buildInputs = [
- ocaml
- perl
- ];
+ strictDeps = true;
+ nativeBuildInputs = [ ocaml perl ];
setSourceRoot = "export sourceRoot=$(echo */ekrh/src/)";
preInstall = "export INSTALLDIR=$out";
postInstall = ''for i in "$out/casc"/*; do ln -s "$i" "$out/bin/ekrh-casc-$(basename $i)"; done '';
diff --git a/pkgs/applications/science/logic/hol_light/default.nix b/pkgs/applications/science/logic/hol_light/default.nix
index e66fe992e189..4c105a40e20d 100644
--- a/pkgs/applications/science/logic/hol_light/default.nix
+++ b/pkgs/applications/science/logic/hol_light/default.nix
@@ -38,7 +38,9 @@ stdenv.mkDerivation {
})
];
- buildInputs = [ ocaml camlp5 ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml camlp5 ];
propagatedBuildInputs = [ num ];
installPhase = ''
diff --git a/pkgs/applications/science/logic/iprover/default.nix b/pkgs/applications/science/logic/iprover/default.nix
index ff88586e0353..6485681e3313 100644
--- a/pkgs/applications/science/logic/iprover/default.nix
+++ b/pkgs/applications/science/logic/iprover/default.nix
@@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "0lik8p7ayhjwpkln1iwf0ri84ramhch74j5nj6z7ph6wfi92pgg8";
};
- buildInputs = [ ocaml eprover zlib ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml eprover ];
+ buildInputs = [ zlib ];
preConfigure = "patchShebangs .";
diff --git a/pkgs/applications/science/logic/leo2/default.nix b/pkgs/applications/science/logic/leo2/default.nix
index cbc85c5544cc..4087763aa0c5 100644
--- a/pkgs/applications/science/logic/leo2/default.nix
+++ b/pkgs/applications/science/logic/leo2/default.nix
@@ -9,8 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256:1b2q7vsz6s9ighypsigqjm1mzjiq3xgnz5id5ssb4rh9zm190r82";
};
- nativeBuildInputs = [ makeWrapper ];
- buildInputs = [ eprover ocaml camlp4 perl zlib ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper eprover ocaml camlp4 perl ];
+ buildInputs = [ zlib ];
patches = [ (fetchpatch {
url = "https://github.com/niklasso/minisat/commit/7eb6015313561a2586032574788fcb133eeaa19f.patch";
diff --git a/pkgs/applications/science/logic/ott/default.nix b/pkgs/applications/science/logic/ott/default.nix
index bbc96b2b681c..a00c565fb4e0 100644
--- a/pkgs/applications/science/logic/ott/default.nix
+++ b/pkgs/applications/science/logic/ott/default.nix
@@ -11,8 +11,11 @@ stdenv.mkDerivation rec {
hash = "sha256-GzeEiok5kigcmfqf/K/UxvlKkl55zy0vOyiRZ2HyMiE=";
};
- nativeBuildInputs = [ pkg-config opaline ];
- buildInputs = with ocamlPackages; [ ocaml findlib ocamlgraph ];
+
+ strictDeps = true;
+
+ nativeBuildInputs = [ pkg-config opaline ] ++ (with ocamlPackages; [ findlib ocaml ]);
+ buildInputs = with ocamlPackages; [ ocamlgraph ];
installTargets = "ott.install";
diff --git a/pkgs/applications/science/logic/prooftree/default.nix b/pkgs/applications/science/logic/prooftree/default.nix
index 2606b94f4bbb..4e65c018d1a2 100644
--- a/pkgs/applications/science/logic/prooftree/default.nix
+++ b/pkgs/applications/science/logic/prooftree/default.nix
@@ -9,9 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "0z1z4wqbqwgppkh2bm89fgy07a0y2m6g4lvcyzs09sm1ysklk2dh";
};
- nativeBuildInputs = [ pkg-config ];
- buildInputs = [ ncurses ] ++ (with ocamlPackages; [
- ocaml findlib camlp5 lablgtk ]);
+ strictDeps = true;
+
+ nativeBuildInputs = [ pkg-config ] ++ (with ocamlPackages; [ ocaml findlib camlp5 ]);
+ buildInputs = [ ncurses ] ++ (with ocamlPackages; [ lablgtk ]);
dontAddPrefix = true;
configureFlags = [ "--prefix" "$(out)" ];
diff --git a/pkgs/applications/science/logic/proverif/default.nix b/pkgs/applications/science/logic/proverif/default.nix
index b6d15162fec3..57220aa523cf 100644
--- a/pkgs/applications/science/logic/proverif/default.nix
+++ b/pkgs/applications/science/logic/proverif/default.nix
@@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256:0xgwnp59779xc40sb7ck8rmfn620pilxyq79l3bymj9m7z0mwvm9";
};
- buildInputs = with ocamlPackages; [ ocaml findlib ];
+ strictDeps = true;
+
+ nativeBuildInputs = with ocamlPackages; [ ocaml findlib ];
buildPhase = "./build -nointeract";
installPhase = ''
diff --git a/pkgs/applications/science/logic/satallax/default.nix b/pkgs/applications/science/logic/satallax/default.nix
index 648ebee6550c..5e5fe9925376 100644
--- a/pkgs/applications/science/logic/satallax/default.nix
+++ b/pkgs/applications/science/logic/satallax/default.nix
@@ -3,8 +3,11 @@ stdenv.mkDerivation rec {
pname = "satallax";
version = "2.7";
- nativeBuildInputs = [ makeWrapper ];
- buildInputs = [ ocaml zlib which eprover coq ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper ocaml which eprover coq ];
+ buildInputs = [ zlib ];
+
src = fetchurl {
url = "https://www.ps.uni-saarland.de/~cebrown/satallax/downloads/${pname}-${version}.tar.gz";
sha256 = "1kvxn8mc35igk4vigi5cp7w3wpxk2z3bgwllfm4n3h2jfs0vkpib";
diff --git a/pkgs/applications/science/logic/statverif/default.nix b/pkgs/applications/science/logic/statverif/default.nix
index 07365eef33fa..1f6238977551 100644
--- a/pkgs/applications/science/logic/statverif/default.nix
+++ b/pkgs/applications/science/logic/statverif/default.nix
@@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
sha256 = "113jjhi1qkcggbsmbw8fa9ln8vs7vy2r288szks7rn0jjn0wxmbw";
};
- buildInputs = [ ocaml ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml ];
patchPhase = "patch -p1 < ${pf-patch}";
buildPhase = "./build";
diff --git a/pkgs/applications/science/logic/tlaplus/tlaps.nix b/pkgs/applications/science/logic/tlaplus/tlaps.nix
index 14b3055ab36b..59afbc094e40 100644
--- a/pkgs/applications/science/logic/tlaplus/tlaps.nix
+++ b/pkgs/applications/science/logic/tlaplus/tlaps.nix
@@ -17,7 +17,9 @@ stdenv.mkDerivation rec {
sha256 = "c296998acd14d5b93a8d5be7ee178007ef179957465966576bda26944b1b7fca";
};
- buildInputs = [ ocaml isabelle cvc3 perl wget which ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml isabelle cvc3 perl wget which ];
installPhase = ''
mkdir -pv "$out"
diff --git a/pkgs/applications/science/logic/why3/default.nix b/pkgs/applications/science/logic/why3/default.nix
index 8ca2a6baa889..55b59ff2e3b0 100644
--- a/pkgs/applications/science/logic/why3/default.nix
+++ b/pkgs/applications/science/logic/why3/default.nix
@@ -10,8 +10,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-vNR7WeiSvg+763GcovoZBFDfncekJMeqNegP4fVw06I=";
};
+ strictDeps = true;
+
+ nativeBuildInputs = with ocamlPackages; [
+ ocaml findlib menhir
+ # Coq Support
+ coqPackages.coq
+ ];
+
buildInputs = with ocamlPackages; [
- ocaml findlib ocamlgraph zarith menhir
+ ocamlgraph zarith
# Emacs compilation of why3.el
emacs
# Documentation
diff --git a/pkgs/applications/science/logic/z3/default.nix b/pkgs/applications/science/logic/z3/default.nix
index 75cfa2568f85..928c0b6abebc 100644
--- a/pkgs/applications/science/logic/z3/default.nix
+++ b/pkgs/applications/science/logic/z3/default.nix
@@ -29,12 +29,15 @@ let common = { version, sha256, patches ? [ ] }:
sha256 = sha256;
};
- nativeBuildInputs = optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
- buildInputs = [ python ]
+ strictDeps = true;
+
+ nativeBuildInputs = [ python ]
+ ++ optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames
++ optional javaBindings jdk
- ++ optionals ocamlBindings [ ocaml findlib zarith ]
+ ++ optionals ocamlBindings [ ocaml findlib ]
;
- propagatedBuildInputs = [ python.pkgs.setuptools ];
+ propagatedBuildInputs = [ python.pkgs.setuptools ]
+ ++ optionals ocamlBindings [ zarith ];
enableParallelBuilding = true;
postPatch = optionalString ocamlBindings ''
diff --git a/pkgs/applications/version-management/monotone-viz/default.nix b/pkgs/applications/version-management/monotone-viz/default.nix
index 20edc2af502b..2e71206aff23 100644
--- a/pkgs/applications/version-management/monotone-viz/default.nix
+++ b/pkgs/applications/version-management/monotone-viz/default.nix
@@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
version = "1.0.2";
pname = "monotone-viz";
- nativeBuildInputs = [ pkg-config makeWrapper ];
- buildInputs = [ocaml lablgtk libgnomecanvas glib graphviz_2_0 camlp4];
+ nativeBuildInputs = [ pkg-config makeWrapper ocaml camlp4 ];
+ buildInputs = [ lablgtk libgnomecanvas glib graphviz_2_0 ];
src = fetchurl {
url = "http://oandrieu.nerim.net/monotone-viz/${pname}-${version}-nolablgtk.tar.gz";
sha256 = "1l5x4xqz5g1aaqbc1x80mg0yzkiah9ma9k9mivmn08alkjlakkdk";
diff --git a/pkgs/applications/virtualization/virt-top/default.nix b/pkgs/applications/virtualization/virt-top/default.nix
index 1c648b25ddb0..dc6f79d6a7e5 100644
--- a/pkgs/applications/virtualization/virt-top/default.nix
+++ b/pkgs/applications/virtualization/virt-top/default.nix
@@ -10,18 +10,20 @@ stdenv.mkDerivation rec {
hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE=";
};
+ strictDeps = true;
+
nativeBuildInputs = [
autoreconfHook
pkg-config
getopt
+ ocamlPackages.ocaml
+ ocamlPackages.findlib
];
-
buildInputs = with ocamlPackages; [
+ ocamlPackages.ocaml
calendar
curses
- findlib
gettext-stub
- ocaml
ocaml_libvirt
] ++ [ libxml2 ];
diff --git a/pkgs/build-support/ocaml/dune.nix b/pkgs/build-support/ocaml/dune.nix
index 2ded76d3cd4a..ce3b389b9cee 100644
--- a/pkgs/build-support/ocaml/dune.nix
+++ b/pkgs/build-support/ocaml/dune.nix
@@ -34,7 +34,9 @@ stdenv.mkDerivation ({
runHook postInstall
'';
-} // (builtins.removeAttrs args [ "minimalOCamlVersion" "duneVersion" ]) // {
+ strictDeps = true;
+
+} // (builtins.removeAttrs args [ "minimalOCamlVersion" "duneVersion" ]) // {
name = "ocaml${ocaml.version}-${pname}-${version}";
diff --git a/pkgs/development/compilers/mezzo/default.nix b/pkgs/development/compilers/mezzo/default.nix
index 4f2b081b4db2..903fdb54fee1 100644
--- a/pkgs/development/compilers/mezzo/default.nix
+++ b/pkgs/development/compilers/mezzo/default.nix
@@ -22,7 +22,10 @@ stdenv.mkDerivation {
sha256 = "0yck5r6di0935s3iy2mm9538jkf77ssr789qb06ms7sivd7g3ip6";
};
- buildInputs = [ ocaml findlib ocamlbuild yojson menhir menhirLib ulex pprint fix functory ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml findlib ocamlbuild ];
+ buildInputs = [ yojson menhir menhirLib ulex pprint fix functory ];
# Sets warning 3 as non-fatal
prePatch = lib.optionalString (check-ocaml-version "4.02") ''
diff --git a/pkgs/development/compilers/obliv-c/default.nix b/pkgs/development/compilers/obliv-c/default.nix
index af895131dec9..3e13b9247fb9 100644
--- a/pkgs/development/compilers/obliv-c/default.nix
+++ b/pkgs/development/compilers/obliv-c/default.nix
@@ -1,8 +1,11 @@
{ lib, stdenv, libgcrypt, fetchFromGitHub, ocamlPackages, perl }:
stdenv.mkDerivation rec {
pname = "obliv-c";
+
version = "0.0pre20210621";
- buildInputs = [ perl ]
+
+ strictDeps = true;
+ nativeBuildInputs = [ perl ]
++ (with ocamlPackages; [ ocaml findlib ocamlbuild ]);
propagatedBuildInputs = [ libgcrypt ];
src = fetchFromGitHub {
diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix
index 6dca665ad99d..732d33608e35 100644
--- a/pkgs/development/compilers/reason/default.nix
+++ b/pkgs/development/compilers/reason/default.nix
@@ -12,19 +12,20 @@ stdenv.mkDerivation rec {
sha256 = "sha256-etzEXbILje+CrfJxIhH7jthEMoSJdS6O33QoG8HrLvI=";
};
+ strictDeps = true;
nativeBuildInputs = [
makeWrapper
menhir
- ];
-
- buildInputs = [
+ ocaml
+ menhir
cppo
dune_3
findlib
+ ];
+
+ buildInputs = [
fix
- menhir
menhirSdk
- ocaml
ppxlib
utop
] ++ lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
diff --git a/pkgs/development/compilers/stanc/default.nix b/pkgs/development/compilers/stanc/default.nix
index e3df16230a78..b4d0c5e68230 100644
--- a/pkgs/development/compilers/stanc/default.nix
+++ b/pkgs/development/compilers/stanc/default.nix
@@ -22,9 +22,11 @@ ocamlPackages.buildDunePackage rec {
--replace "if Sys.file_exists (to_windows path) then to_windows cmd else cmd" "cmd"
'';
+ nativeBuildInputs = with ocamlPackages; [
+ menhir
+ ];
buildInputs = with ocamlPackages; [
core_unix
- menhir
menhirLib
ppx_deriving
fmt
diff --git a/pkgs/development/coq-modules/compcert/default.nix b/pkgs/development/coq-modules/compcert/default.nix
index fb33f92bcc2a..0e7225a184a2 100644
--- a/pkgs/development/coq-modules/compcert/default.nix
+++ b/pkgs/development/coq-modules/compcert/default.nix
@@ -27,8 +27,10 @@ let compcert = mkCoqDerivation rec {
"3.11".sha256 = "sha256-ZISs/ZAJVWtxp9+Sg5qV5Rss1gI9hK769GnBfawLa6A=";
};
- nativeBuildInputs = [ makeWrapper ];
- buildInputs = with ocamlPackages; [ ocaml findlib menhir menhirLib ] ++ [ coq coq2html ];
+ strictDeps = true;
+
+ nativeBuildInputs = with ocamlPackages; [ makeWrapper ocaml findlib menhir coq coq2html ];
+ buildInputs = with ocamlPackages; [ menhirLib ];
propagatedBuildInputs = [ flocq ];
enableParallelBuilding = true;
diff --git a/pkgs/development/interpreters/eff/default.nix b/pkgs/development/interpreters/eff/default.nix
index cddb773ec168..489d3b0128d9 100644
--- a/pkgs/development/interpreters/eff/default.nix
+++ b/pkgs/development/interpreters/eff/default.nix
@@ -15,10 +15,14 @@ stdenv.mkDerivation rec {
substituteInPlace setup.ml --replace js_of_ocaml.ocamlbuild js_of_ocaml-ocamlbuild
'';
- buildInputs = [ which ] ++ (with ocamlPackages; [
- ocaml findlib ocamlbuild menhir js_of_ocaml js_of_ocaml-ocamlbuild
+ strictDeps = true;
+
+ nativeBuildInputs = [ which ] ++ (with ocamlPackages; [
+ ocaml findlib ocamlbuild menhir
]);
+ buildInputs = with ocamlPackages; [ js_of_ocaml js_of_ocaml-ocamlbuild ];
+
doCheck = true;
checkTarget = "test";
diff --git a/pkgs/development/ocaml-modules/afl-persistent/default.nix b/pkgs/development/ocaml-modules/afl-persistent/default.nix
index ba266ade830e..04d31c881561 100644
--- a/pkgs/development/ocaml-modules/afl-persistent/default.nix
+++ b/pkgs/development/ocaml-modules/afl-persistent/default.nix
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib ];
# don't run tests in buildPhase
diff --git a/pkgs/development/ocaml-modules/alcotest/lwt.nix b/pkgs/development/ocaml-modules/alcotest/lwt.nix
index dae42e2b97be..c52079f5ccb6 100644
--- a/pkgs/development/ocaml-modules/alcotest/lwt.nix
+++ b/pkgs/development/ocaml-modules/alcotest/lwt.nix
@@ -10,7 +10,7 @@ buildDunePackage {
propagatedBuildInputs = [ alcotest logs lwt fmt ];
doCheck = true;
- nativeCheckInputs = [ re cmdliner ];
+ checkInputs = [ re cmdliner ];
meta = alcotest.meta // {
description = "Lwt-based helpers for Alcotest";
diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix
index 52b65817c6f8..502bd2ad44d7 100644
--- a/pkgs/development/ocaml-modules/angstrom/default.nix
+++ b/pkgs/development/ocaml-modules/angstrom/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
sha256 = "1hmrkdcdlkwy7rxhngf3cv3sa61cznnd9p5lmqhx20664gx2ibrh";
};
- nativeCheckInputs = [ alcotest ppx_let ];
+ checkInputs = [ alcotest ppx_let ];
buildInputs = [ ocaml-syntax-shims ];
propagatedBuildInputs = [ bigstringaf result ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix
index c74545caf24f..fddf128d0d9b 100644
--- a/pkgs/development/ocaml-modules/apron/default.nix
+++ b/pkgs/development/ocaml-modules/apron/default.nix
@@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp mpfr ppl camlidl ];
propagatedBuildInputs = [ mlgmpidl ];
+ # TODO: Doesn't produce the library correctly if true
strictDeps = false;
outputs = [ "out" "bin" "dev" ];
diff --git a/pkgs/development/ocaml-modules/arp/default.nix b/pkgs/development/ocaml-modules/arp/default.nix
index cdf657ea72e1..4c98f5b377bc 100644
--- a/pkgs/development/ocaml-modules/arp/default.nix
+++ b/pkgs/development/ocaml-modules/arp/default.nix
@@ -36,7 +36,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
mirage-clock-unix
mirage-profile
diff --git a/pkgs/development/ocaml-modules/asn1-combinators/default.nix b/pkgs/development/ocaml-modules/asn1-combinators/default.nix
index 720294e65e6e..8447c25cd707 100644
--- a/pkgs/development/ocaml-modules/asn1-combinators/default.nix
+++ b/pkgs/development/ocaml-modules/asn1-combinators/default.nix
@@ -16,7 +16,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ cstruct zarith bigarray-compat stdlib-shims ptime ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = with lib; {
homepage = "https://github.com/mirleft/ocaml-asn1-combinators";
diff --git a/pkgs/development/ocaml-modules/atdgen/default.nix b/pkgs/development/ocaml-modules/atdgen/default.nix
index a8d2ef0ace18..07ee079cae30 100644
--- a/pkgs/development/ocaml-modules/atdgen/default.nix
+++ b/pkgs/development/ocaml-modules/atdgen/default.nix
@@ -11,9 +11,8 @@ buildDunePackage {
propagatedBuildInputs = [ atdgen-runtime ];
doCheck = true;
- nativeCheckInputs = [ alcotest atdgen-codec-runtime
- (python3.withPackages (ps: [ ps.jsonschema ]))
- ];
+ nativeCheckInputs = [ atd (python3.withPackages (ps: [ ps.jsonschema ]))];
+ checkInputs = [ alcotest atdgen-codec-runtime ];
meta = (builtins.removeAttrs atd.meta [ "mainProgram" ]) // {
description = "Generates efficient JSON serializers, deserializers and validators";
diff --git a/pkgs/development/ocaml-modules/awa/default.nix b/pkgs/development/ocaml-modules/awa/default.nix
index 362edaa95b1a..fd0bf82df343 100644
--- a/pkgs/development/ocaml-modules/awa/default.nix
+++ b/pkgs/development/ocaml-modules/awa/default.nix
@@ -18,8 +18,6 @@ buildDunePackage rec {
hash = "sha256-ae1gTx3Emmkof/2Gnhq0d5RyfkFx21hHkVEVgyPdXuo=";
};
- nativeBuildInputs = [ ppx_cstruct ];
-
propagatedBuildInputs = [
mirage-crypto mirage-crypto-ec mirage-crypto-rng mirage-crypto-pk x509
cstruct cstruct-sexp sexplib mtime
@@ -27,8 +25,10 @@ buildDunePackage rec {
ppx_sexp_conv eqaf
];
+ buildInputs = [ ppx_cstruct ];
+
doCheck = true;
- nativeCheckInputs = [ cstruct-unix cmdliner fmt ];
+ checkInputs = [ cstruct-unix cmdliner fmt ];
meta = with lib; {
description = "SSH implementation in OCaml";
diff --git a/pkgs/development/ocaml-modules/awa/lwt.nix b/pkgs/development/ocaml-modules/awa/lwt.nix
index b155c1b6698c..241df784ad59 100644
--- a/pkgs/development/ocaml-modules/awa/lwt.nix
+++ b/pkgs/development/ocaml-modules/awa/lwt.nix
@@ -14,7 +14,8 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [ cstruct-unix ];
+ nativeCheckInputs = [ awa ];
+ checkInputs = [ cstruct-unix ];
meta = awa.meta // { mainProgram = "awa_lwt_server"; };
}
diff --git a/pkgs/development/ocaml-modules/bap/default.nix b/pkgs/development/ocaml-modules/bap/default.nix
index 4585f731e3c6..0d2b4247bd42 100644
--- a/pkgs/development/ocaml-modules/bap/default.nix
+++ b/pkgs/development/ocaml-modules/bap/default.nix
@@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which makeWrapper ocaml findlib ocamlbuild ocaml_oasis ];
- buildInputs = [ linenoise
+ buildInputs = [ ocamlbuild
+ linenoise
ounit
ppx_bitstring
z3
diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix
index 9420d3c419b5..db1a4e856467 100644
--- a/pkgs/development/ocaml-modules/base64/default.nix
+++ b/pkgs/development/ocaml-modules/base64/default.nix
@@ -11,11 +11,11 @@ buildDunePackage rec {
sha256 = "sha256-WJ3pwAV46/54QZismBjTWGxHSyMWts0+HEbMsfYq46Q=";
};
- propagatedBuildInputs = [ findlib ];
+ nativeBuildInputs = [ findlib ];
# otherwise fmt breaks evaluation
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest bos rresult ];
+ checkInputs = [ alcotest bos rresult ];
meta = {
homepage = "https://github.com/mirage/ocaml-base64";
diff --git a/pkgs/development/ocaml-modules/benchmark/default.nix b/pkgs/development/ocaml-modules/benchmark/default.nix
index 0f5722a44acf..6c579e127184 100644
--- a/pkgs/development/ocaml-modules/benchmark/default.nix
+++ b/pkgs/development/ocaml-modules/benchmark/default.nix
@@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
buildInputs = [ ocaml_pcre ];
- strictDeps = true;
-
createFindlibDestdir = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/bheap/default.nix b/pkgs/development/ocaml-modules/bheap/default.nix
index 7b23e23fdcea..49e5c336d90b 100644
--- a/pkgs/development/ocaml-modules/bheap/default.nix
+++ b/pkgs/development/ocaml-modules/bheap/default.nix
@@ -12,7 +12,7 @@ buildDunePackage rec {
useDune2 = true;
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
stdlib-shims
];
diff --git a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix
index 7d6bb8806d42..2674369f37e0 100644
--- a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix
+++ b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix
@@ -14,12 +14,10 @@ buildDunePackage rec {
minimumOCamlVersion = "4.07";
useDune2 = true;
- strictDeps = !doCheck;
-
propagatedBuildInputs = [ bigarray-compat ];
nativeBuildInputs = [ findlib pkg-config ];
- nativeCheckInputs = [ alcotest astring fpath bos ];
+ checkInputs = [ alcotest astring fpath bos ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/bigstringaf/default.nix b/pkgs/development/ocaml-modules/bigstringaf/default.nix
index bd5d470e03f4..08f50ea53e19 100644
--- a/pkgs/development/ocaml-modules/bigstringaf/default.nix
+++ b/pkgs/development/ocaml-modules/bigstringaf/default.nix
@@ -13,11 +13,8 @@ buildDunePackage rec {
sha256 = "sha256-HXPjnE56auy2MI6HV2XuBX/VeqsO50HFzTul17lKEqE=";
};
- # This currently fails with dune
- strictDeps = false;
-
nativeBuildInputs = [ pkg-config ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/bindlib/default.nix b/pkgs/development/ocaml-modules/bindlib/default.nix
index 9f4cc91e2250..c0d8dd54a37b 100644
--- a/pkgs/development/ocaml-modules/bindlib/default.nix
+++ b/pkgs/development/ocaml-modules/bindlib/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
hash = "sha256-058yMbz9ExvgNG/kY9tPk70XSeVRSSKVg4n4F4fmPu4=";
};
- nativeCheckInputs = [ earley timed ];
+ checkInputs = [ earley timed ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/biniou/default.nix b/pkgs/development/ocaml-modules/biniou/default.nix
index 22d2b643b279..2c58a4081401 100644
--- a/pkgs/development/ocaml-modules/biniou/default.nix
+++ b/pkgs/development/ocaml-modules/biniou/default.nix
@@ -11,8 +11,6 @@ buildDunePackage rec {
propagatedBuildInputs = [ camlp-streams easy-format ];
- strictDeps = true;
-
meta = {
description = "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
homepage = "https://github.com/ocaml-community/biniou";
diff --git a/pkgs/development/ocaml-modules/biocaml/default.nix b/pkgs/development/ocaml-modules/biocaml/default.nix
index 35b36bc94405..006316295e49 100644
--- a/pkgs/development/ocaml-modules/biocaml/default.nix
+++ b/pkgs/development/ocaml-modules/biocaml/default.nix
@@ -1,6 +1,7 @@
{ lib, buildDunePackage, fetchFromGitHub, fetchpatch
, ounit, async, base64, camlzip, cfstream
-, core, ppx_jane, ppx_sexp_conv, rresult, uri, xmlm }:
+, core, ppx_jane, ppx_sexp_conv, rresult, uri, xmlm
+}:
buildDunePackage rec {
pname = "biocaml";
@@ -10,8 +11,8 @@ buildDunePackage rec {
src = fetchFromGitHub {
owner = "biocaml";
- repo = pname;
- rev = "v${version}";
+ repo = pname;
+ rev = "v${version}";
sha256 = "01yw12yixs45ya1scpb9jy2f7dw1mbj7741xib2xpq3kkc1hc21s";
};
@@ -21,7 +22,7 @@ buildDunePackage rec {
};
buildInputs = [ ppx_jane ppx_sexp_conv ];
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
propagatedBuildInputs = [ async base64 camlzip cfstream core rresult uri xmlm ];
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/bitstring/ppx.nix b/pkgs/development/ocaml-modules/bitstring/ppx.nix
index 2b9cbca2085d..9eb4c74f574c 100644
--- a/pkgs/development/ocaml-modules/bitstring/ppx.nix
+++ b/pkgs/development/ocaml-modules/bitstring/ppx.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
buildInputs = [ bitstring ppxlib ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = bitstring.meta // {
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
diff --git a/pkgs/development/ocaml-modules/bitv/default.nix b/pkgs/development/ocaml-modules/bitv/default.nix
index a986a46f2935..25906f1432f0 100644
--- a/pkgs/development/ocaml-modules/bitv/default.nix
+++ b/pkgs/development/ocaml-modules/bitv/default.nix
@@ -17,8 +17,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook which ocaml findlib ];
- strictDeps = true;
-
createFindlibDestdir = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/bls12-381-signature/default.nix b/pkgs/development/ocaml-modules/bls12-381-signature/default.nix
index 378af4109cb6..db0a383f925e 100644
--- a/pkgs/development/ocaml-modules/bls12-381-signature/default.nix
+++ b/pkgs/development/ocaml-modules/bls12-381-signature/default.nix
@@ -1,11 +1,11 @@
-{
- lib,
- fetchzip,
- buildDunePackage,
- bls12-381,
- alcotest,
- bisect_ppx,
- integers_stubs_js,
+{ lib
+, fetchzip
+, buildDunePackage
+, bls12-381
+, alcotest
+, bisect_ppx
+, integers_stubs_js
+,
}:
buildDunePackage rec {
@@ -20,7 +20,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ bls12-381 ];
- nativeCheckInputs = [alcotest bisect_ppx integers_stubs_js];
+ checkInputs = [ alcotest bisect_ppx integers_stubs_js ];
doCheck = true;
@@ -28,6 +28,6 @@ buildDunePackage rec {
description = "Implementation of BLS signatures for the pairing-friendly curve BLS12-381";
license = lib.licenses.mit;
homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-bls12-381-signature";
- maintainers = [lib.maintainers.ulrikstrid];
+ maintainers = [ lib.maintainers.ulrikstrid ];
};
}
diff --git a/pkgs/development/ocaml-modules/bls12-381/default.nix b/pkgs/development/ocaml-modules/bls12-381/default.nix
index b30c1333dff0..6c1ff541c5f9 100644
--- a/pkgs/development/ocaml-modules/bls12-381/default.nix
+++ b/pkgs/development/ocaml-modules/bls12-381/default.nix
@@ -1,6 +1,7 @@
{ lib, buildDunePackage, fetchFromGitLab
, ff-sig, zarith, zarith_stubs_js, integers_stubs_js, integers, hex
-, alcotest, ff-pbt }:
+, alcotest, ff-pbt
+}:
buildDunePackage rec {
pname = "bls12-381";
@@ -23,7 +24,7 @@ buildDunePackage rec {
hex
];
- nativeCheckInputs = [ alcotest ff-pbt ];
+ checkInputs = [ alcotest ff-pbt ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/bls12-381/legacy.nix b/pkgs/development/ocaml-modules/bls12-381/legacy.nix
index 1ae2add21658..c72157c677e7 100644
--- a/pkgs/development/ocaml-modules/bls12-381/legacy.nix
+++ b/pkgs/development/ocaml-modules/bls12-381/legacy.nix
@@ -26,7 +26,7 @@ buildDunePackage rec {
zarith
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/bwd/default.nix b/pkgs/development/ocaml-modules/bwd/default.nix
index 0c5509e08de9..aa762502a598 100644
--- a/pkgs/development/ocaml-modules/bwd/default.nix
+++ b/pkgs/development/ocaml-modules/bwd/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
};
doCheck = true;
- nativeCheckInputs = [ qcheck-core ];
+ checkInputs = [ qcheck-core ];
meta = {
description = "Backward Lists";
diff --git a/pkgs/development/ocaml-modules/ca-certs-nss/default.nix b/pkgs/development/ocaml-modules/ca-certs-nss/default.nix
index 73f6838501a6..1dab8e4911e0 100644
--- a/pkgs/development/ocaml-modules/ca-certs-nss/default.nix
+++ b/pkgs/development/ocaml-modules/ca-certs-nss/default.nix
@@ -39,7 +39,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = with lib; {
description = "X.509 trust anchors extracted from Mozilla's NSS";
diff --git a/pkgs/development/ocaml-modules/ca-certs/default.nix b/pkgs/development/ocaml-modules/ca-certs/default.nix
index 963989cb2236..185944f412e6 100644
--- a/pkgs/development/ocaml-modules/ca-certs/default.nix
+++ b/pkgs/development/ocaml-modules/ca-certs/default.nix
@@ -19,7 +19,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ bos fpath ptime mirage-crypto x509 astring logs ];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
cacert # for /etc/ssl/certs/ca-bundle.crt
alcotest
fmt
diff --git a/pkgs/development/ocaml-modules/calendar/default.nix b/pkgs/development/ocaml-modules/calendar/default.nix
index cf349eeb8bb1..8fd3f5befef9 100644
--- a/pkgs/development/ocaml-modules/calendar/default.nix
+++ b/pkgs/development/ocaml-modules/calendar/default.nix
@@ -14,8 +14,6 @@ buildDunePackage rec {
propagatedBuildInputs = [ re ];
- strictDeps = true;
-
meta = {
inherit (src.meta) homepage;
description = "A library for handling dates and times";
diff --git a/pkgs/development/ocaml-modules/callipyge/default.nix b/pkgs/development/ocaml-modules/callipyge/default.nix
index 145bcedacbcb..2004f8868caf 100644
--- a/pkgs/development/ocaml-modules/callipyge/default.nix
+++ b/pkgs/development/ocaml-modules/callipyge/default.nix
@@ -25,7 +25,7 @@ buildDunePackage rec {
# alcotest isn't available for OCaml < 4.08 due to fmt
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/oklm-wsh/Callipyge";
diff --git a/pkgs/development/ocaml-modules/camlimages/4.2.4.nix b/pkgs/development/ocaml-modules/camlimages/4.2.4.nix
index b44fd7db6b31..53115c4ecb8e 100644
--- a/pkgs/development/ocaml-modules/camlimages/4.2.4.nix
+++ b/pkgs/development/ocaml-modules/camlimages/4.2.4.nix
@@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
sha256 = "17hvsql5dml7ialjcags8wphs7w6z88b2rgjir1382bg8vn62bkr";
};
+ strictDeps = true;
+
nativeBuildInputs = [
omake
ocaml
@@ -65,6 +67,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
# 4.2.5 requires OCaml >= 4.06
branch = "4.2.4";
+ # incompatible with omake >= 0.10
+ broken = true;
homepage = "https://gitlab.com/camlspotter/camlimages";
description = "OCaml image processing library";
license = licenses.lgpl2Only;
diff --git a/pkgs/development/ocaml-modules/camlimages/default.nix b/pkgs/development/ocaml-modules/camlimages/default.nix
index a83c7c474ac5..b6768cfe8c1a 100644
--- a/pkgs/development/ocaml-modules/camlimages/default.nix
+++ b/pkgs/development/ocaml-modules/camlimages/default.nix
@@ -17,8 +17,6 @@ buildDunePackage rec {
sha256 = "1m2c76ghisg73dikz2ifdkrbkgiwa0hcmp21f2fm2rkbf02rq3f4";
};
- strictDeps = true;
-
nativeBuildInputs = [ cppo ];
buildInputs = [ dune-configurator graphics lablgtk stdio ];
diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix
index e5fe67021312..ea2a65393682 100644
--- a/pkgs/development/ocaml-modules/camomile/default.nix
+++ b/pkgs/development/ocaml-modules/camomile/default.nix
@@ -15,8 +15,6 @@ buildDunePackage rec {
nativeBuildInputs = [ cppo ];
- strictDeps = true;
-
configurePhase = ''
runHook preConfigure
ocaml configure.ml --share $out/share/camomile
diff --git a/pkgs/development/ocaml-modules/caqti/default.nix b/pkgs/development/ocaml-modules/caqti/default.nix
index 0f37575d86d2..18b55b9857ef 100644
--- a/pkgs/development/ocaml-modules/caqti/default.nix
+++ b/pkgs/development/ocaml-modules/caqti/default.nix
@@ -1,6 +1,7 @@
{ lib, fetchurl, buildDunePackage, ocaml
, cppo, logs, ptime, uri, bigstringaf
-, re, cmdliner, alcotest }:
+, re, cmdliner, alcotest
+}:
buildDunePackage rec {
pname = "caqti";
@@ -15,7 +16,7 @@ buildDunePackage rec {
nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
- nativeCheckInputs = [ re cmdliner alcotest ];
+ checkInputs = [ re cmdliner alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/carton/default.nix b/pkgs/development/ocaml-modules/carton/default.nix
index c3d7204f3635..727d407ac542 100644
--- a/pkgs/development/ocaml-modules/carton/default.nix
+++ b/pkgs/development/ocaml-modules/carton/default.nix
@@ -56,7 +56,7 @@ buildDunePackage rec {
nativeBuildInputs = [
findlib
];
- nativeCheckInputs = [
+ checkInputs = [
base64
alcotest
alcotest-lwt
diff --git a/pkgs/development/ocaml-modules/carton/lwt.nix b/pkgs/development/ocaml-modules/carton/lwt.nix
index 60e45823eb50..03333deff67a 100644
--- a/pkgs/development/ocaml-modules/carton/lwt.nix
+++ b/pkgs/development/ocaml-modules/carton/lwt.nix
@@ -24,6 +24,8 @@ buildDunePackage {
doCheck = true;
nativeCheckInputs = [
git-binary
+ ];
+ checkInputs = [
alcotest
alcotest-lwt
cstruct
diff --git a/pkgs/development/ocaml-modules/cfstream/default.nix b/pkgs/development/ocaml-modules/cfstream/default.nix
index aeedb414a3bb..b39cb471e4cb 100644
--- a/pkgs/development/ocaml-modules/cfstream/default.nix
+++ b/pkgs/development/ocaml-modules/cfstream/default.nix
@@ -17,11 +17,10 @@ buildDunePackage rec {
patches = [ ./git_commit.patch ];
- # This currently fails with dune
- strictDeps = false;
+ strictDeps = true;
nativeBuildInputs = [ m4 ];
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
propagatedBuildInputs = [ core_kernel ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/chacha/default.nix b/pkgs/development/ocaml-modules/chacha/default.nix
index bad57cb9e9b4..ebd73b519f95 100644
--- a/pkgs/development/ocaml-modules/chacha/default.nix
+++ b/pkgs/development/ocaml-modules/chacha/default.nix
@@ -32,7 +32,7 @@ buildDunePackage rec {
# alcotest isn't available for OCaml < 4.05 due to fmt
doCheck = lib.versionAtLeast ocaml.version "4.05";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/abeaumont/ocaml-chacha";
diff --git a/pkgs/development/ocaml-modules/checkseum/default.nix b/pkgs/development/ocaml-modules/checkseum/default.nix
index faeb905e6a7f..0b14aa57c749 100644
--- a/pkgs/development/ocaml-modules/checkseum/default.nix
+++ b/pkgs/development/ocaml-modules/checkseum/default.nix
@@ -24,7 +24,7 @@ buildDunePackage rec {
ocaml-freestanding
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
bos
astring
diff --git a/pkgs/development/ocaml-modules/class_group_vdf/default.nix b/pkgs/development/ocaml-modules/class_group_vdf/default.nix
index 1290abaa2383..f59ad1448a9f 100644
--- a/pkgs/development/ocaml-modules/class_group_vdf/default.nix
+++ b/pkgs/development/ocaml-modules/class_group_vdf/default.nix
@@ -1,7 +1,8 @@
{ stdenv, lib, fetchFromGitLab, buildDunePackage
, gmp, pkg-config, dune-configurator
, zarith, integers
-, alcotest, bisect_ppx }:
+, alcotest, bisect_ppx
+}:
buildDunePackage rec {
pname = "class_group_vdf";
@@ -23,12 +24,16 @@ buildDunePackage rec {
dune-configurator
];
+ buildInputs = [
+ dune-configurator
+ ];
+
propagatedBuildInputs = [
zarith
integers
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
bisect_ppx
];
diff --git a/pkgs/development/ocaml-modules/cohttp/async.nix b/pkgs/development/ocaml-modules/cohttp/async.nix
index bcc1c11459b2..3e6ac4ae2d96 100644
--- a/pkgs/development/ocaml-modules/cohttp/async.nix
+++ b/pkgs/development/ocaml-modules/cohttp/async.nix
@@ -51,7 +51,7 @@ buildDunePackage {
# Examples don't compile with core 0.15. See https://github.com/mirage/ocaml-cohttp/pull/864.
doCheck = false;
- nativeCheckInputs = [
+ checkInputs = [
ounit
mirage-crypto
core
diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix
index 0cb9813687a3..fcbed191ad6f 100644
--- a/pkgs/development/ocaml-modules/cohttp/default.nix
+++ b/pkgs/development/ocaml-modules/cohttp/default.nix
@@ -21,7 +21,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ base64 re stringext uri-sexp ];
doCheck = true;
- nativeCheckInputs = [ fmt alcotest crowbar ];
+ checkInputs = [ fmt alcotest crowbar ];
meta = {
description = "HTTP(S) library for Lwt, Async and Mirage";
diff --git a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
index 0ff6fb6920aa..b360cf0e587e 100644
--- a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
+++ b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
@@ -14,13 +14,18 @@ buildDunePackage {
buildInputs = [ cmdliner ppx_sexp_conv ];
propagatedBuildInputs = [
- cohttp-lwt conduit-lwt conduit-lwt-unix fmt logs magic-mime
+ cohttp-lwt
+ conduit-lwt
+ conduit-lwt-unix
+ fmt
+ logs
+ magic-mime
];
# TODO(@sternenseemann): fail for unknown reason
# https://github.com/mirage/ocaml-cohttp/issues/675#issuecomment-830692742
doCheck = false;
- nativeCheckInputs = [ ounit cacert ];
+ checkInputs = [ ounit cacert ];
meta = cohttp-lwt.meta // {
description = "CoHTTP implementation for Unix and Windows using Lwt";
diff --git a/pkgs/development/ocaml-modules/coin/default.nix b/pkgs/development/ocaml-modules/coin/default.nix
index 5996cd7adb61..c9b6ad3128f3 100644
--- a/pkgs/development/ocaml-modules/coin/default.nix
+++ b/pkgs/development/ocaml-modules/coin/default.nix
@@ -24,8 +24,6 @@ buildDunePackage rec {
nativeBuildInputs = [ findlib ];
buildInputs = [ re ];
- strictDeps = true;
-
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
index 3f91d9b75365..cb86ea5f4f06 100644
--- a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
+++ b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
@@ -23,7 +23,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
lwt_log
ssl
];
diff --git a/pkgs/development/ocaml-modules/containers/data.nix b/pkgs/development/ocaml-modules/containers/data.nix
index 48478c963ef0..980984c6ec05 100644
--- a/pkgs/development/ocaml-modules/containers/data.nix
+++ b/pkgs/development/ocaml-modules/containers/data.nix
@@ -9,7 +9,7 @@ buildDunePackage {
inherit (containers) src version doCheck;
buildInputs = [ dune-configurator ];
- nativeCheckInputs = [ gen iter qcheck-core ];
+ checkInputs = [ gen iter qcheck-core ];
propagatedBuildInputs = [ containers ];
diff --git a/pkgs/development/ocaml-modules/containers/default.nix b/pkgs/development/ocaml-modules/containers/default.nix
index 2503ffbf08f0..4cd6413293e5 100644
--- a/pkgs/development/ocaml-modules/containers/default.nix
+++ b/pkgs/development/ocaml-modules/containers/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ either seq ];
- nativeCheckInputs = [ gen iter qcheck-core uutf yojson ];
+ checkInputs = [ gen iter qcheck-core uutf yojson ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/cooltt/default.nix b/pkgs/development/ocaml-modules/cooltt/default.nix
index a3894f0cbf4f..180a09e4d4a1 100644
--- a/pkgs/development/ocaml-modules/cooltt/default.nix
+++ b/pkgs/development/ocaml-modules/cooltt/default.nix
@@ -13,6 +13,8 @@
, uuseg
, uutf
, yuujinchou
+, ounit2
+, qcheck
}:
let
@@ -70,12 +72,13 @@ buildDunePackage {
};
nativeBuildInputs = [
- cmdliner
menhir
- ppxlib
];
- buildInputs = [ containers ];
+ buildInputs = [
+ cmdliner
+ ppxlib
+ ];
propagatedBuildInputs = [
bantorra
@@ -87,6 +90,12 @@ buildDunePackage {
uuseg
uutf
yuujinchou
+ containers
+ ];
+
+ checkInputs = [
+ ounit2
+ qcheck
];
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/cow/default.nix b/pkgs/development/ocaml-modules/cow/default.nix
index 1c898f8e75f8..4688ec4ef328 100644
--- a/pkgs/development/ocaml-modules/cow/default.nix
+++ b/pkgs/development/ocaml-modules/cow/default.nix
@@ -1,5 +1,6 @@
{ lib, fetchurl, buildDunePackage, ocaml, alcotest
-, uri, xmlm, omd, ezjsonm }:
+, uri, xmlm, omd, ezjsonm
+}:
buildDunePackage rec {
useDune2 = true;
@@ -14,7 +15,7 @@ buildDunePackage rec {
};
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/cpu/default.nix b/pkgs/development/ocaml-modules/cpu/default.nix
index 33702ca18296..a61a597b2093 100644
--- a/pkgs/development/ocaml-modules/cpu/default.nix
+++ b/pkgs/development/ocaml-modules/cpu/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
autoheader
'';
- buildInputs = [ autoconf ];
+ nativeBuildInputs = [ autoconf ];
hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow";
diff --git a/pkgs/development/ocaml-modules/crowbar/default.nix b/pkgs/development/ocaml-modules/crowbar/default.nix
index da55cb1d78a8..d321abfe9daa 100644
--- a/pkgs/development/ocaml-modules/crowbar/default.nix
+++ b/pkgs/development/ocaml-modules/crowbar/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
postPatch = "rm -rf examples/xmldiff";
propagatedBuildInputs = [ ocplib-endian cmdliner afl-persistent ];
- nativeCheckInputs = [ calendar fpath pprint uutf uunf uucp ];
+ checkInputs = [ calendar fpath pprint uutf uunf uucp ];
# uunf is broken on aarch64
doCheck = !stdenv.isAarch64;
diff --git a/pkgs/development/ocaml-modules/cstruct/default.nix b/pkgs/development/ocaml-modules/cstruct/default.nix
index 5ef3540a9a1e..9efe75af70c9 100644
--- a/pkgs/development/ocaml-modules/cstruct/default.nix
+++ b/pkgs/development/ocaml-modules/cstruct/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
buildInputs = [ fmt ];
doCheck = true;
- nativeCheckInputs = [ alcotest crowbar ];
+ checkInputs = [ alcotest crowbar ];
meta = {
description = "Access C-like structures directly from OCaml";
diff --git a/pkgs/development/ocaml-modules/cstruct/ppx.nix b/pkgs/development/ocaml-modules/cstruct/ppx.nix
index c4518de9f9ee..b640c9745f3b 100644
--- a/pkgs/development/ocaml-modules/cstruct/ppx.nix
+++ b/pkgs/development/ocaml-modules/cstruct/ppx.nix
@@ -6,14 +6,15 @@ if lib.versionOlder (cstruct.version or "1") "3"
then cstruct
else
-buildDunePackage {
- pname = "ppx_cstruct";
- inherit (cstruct) version src meta;
+ buildDunePackage {
+ pname = "ppx_cstruct";
+ inherit (cstruct) version src meta;
- minimalOCamlVersion = "4.08";
+ minimalOCamlVersion = "4.08";
- propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
+ propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
- doCheck = true;
- nativeCheckInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
-}
+ doCheck = true;
+ nativeCheckInputs = [ cppo ];
+ checkInputs = [ ounit ppx_sexp_conv cstruct-sexp cstruct-unix ];
+ }
diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix
index 091a6ab4defa..a20911cbb299 100644
--- a/pkgs/development/ocaml-modules/cstruct/sexp.nix
+++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix
@@ -11,7 +11,7 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
propagatedBuildInputs = [ cstruct sexplib ];
}
diff --git a/pkgs/development/ocaml-modules/ctypes_stubs_js/default.nix b/pkgs/development/ocaml-modules/ctypes_stubs_js/default.nix
index 6eb814ef7db9..edb31f1836bf 100644
--- a/pkgs/development/ocaml-modules/ctypes_stubs_js/default.nix
+++ b/pkgs/development/ocaml-modules/ctypes_stubs_js/default.nix
@@ -20,10 +20,12 @@ buildDunePackage rec {
propagatedBuildInputs = [ integers_stubs_js ];
nativeCheckInputs = [
- ctypes
- js_of_ocaml-compiler
- ppx_expect
nodejs
+ js_of_ocaml-compiler
+ ];
+ checkInputs = [
+ ctypes
+ ppx_expect
];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/cudf/default.nix b/pkgs/development/ocaml-modules/cudf/default.nix
index 48a776669dc3..b4cd7e458a70 100644
--- a/pkgs/development/ocaml-modules/cudf/default.nix
+++ b/pkgs/development/ocaml-modules/cudf/default.nix
@@ -1,6 +1,6 @@
{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, extlib, glib, perl, pkg-config, stdlib-shims, ounit }:
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-cudf";
version = "0.9";
@@ -13,15 +13,16 @@ stdenv.mkDerivation {
"all"
"opt"
];
+
nativeBuildInputs = [
findlib
ocaml
ocamlbuild
pkg-config
+ perl
];
buildInputs = [
glib
- perl
stdlib-shims
];
propagatedBuildInputs = [
@@ -32,7 +33,7 @@ stdenv.mkDerivation {
"all"
"test"
];
- nativeCheckInputs = [
+ checkInputs = [
ounit
];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/curly/default.nix b/pkgs/development/ocaml-modules/curly/default.nix
index f82a6c237dcd..5f0e93f8f26d 100644
--- a/pkgs/development/ocaml-modules/curly/default.nix
+++ b/pkgs/development/ocaml-modules/curly/default.nix
@@ -16,7 +16,8 @@ buildDunePackage rec {
};
propagatedBuildInputs = [ result ];
- nativeCheckInputs = [ alcotest cohttp-lwt-unix cacert ];
+ nativeCheckInputs = [ cacert ];
+ checkInputs = [ alcotest cohttp-lwt-unix ];
# test dependencies are only available for >= 4.08
# https://github.com/mirage/ca-certs/issues/16
doCheck = lib.versionAtLeast ocaml.version "4.08"
diff --git a/pkgs/development/ocaml-modules/curses/default.nix b/pkgs/development/ocaml-modules/curses/default.nix
index e72f4ce0e8b3..4c38d161ee61 100644
--- a/pkgs/development/ocaml-modules/curses/default.nix
+++ b/pkgs/development/ocaml-modules/curses/default.nix
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "0yy3wf8i7jgvzdc40bni7mvpkvclq97cgb5fw265mrjj0iqpkqpd";
};
+ strictDeps = true;
+
propagatedBuildInputs = [ ncurses ];
nativeBuildInputs = [ ocaml findlib ];
diff --git a/pkgs/development/ocaml-modules/data-encoding/default.nix b/pkgs/development/ocaml-modules/data-encoding/default.nix
index b5878a51ef7d..7bd01ff83157 100644
--- a/pkgs/development/ocaml-modules/data-encoding/default.nix
+++ b/pkgs/development/ocaml-modules/data-encoding/default.nix
@@ -36,7 +36,7 @@ buildDunePackage {
json-data-encoding-bson
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
crowbar
ppx_expect
diff --git a/pkgs/development/ocaml-modules/decompress/default.nix b/pkgs/development/ocaml-modules/decompress/default.nix
index c67cfac5410a..3e15bd5bbcd1 100644
--- a/pkgs/development/ocaml-modules/decompress/default.nix
+++ b/pkgs/development/ocaml-modules/decompress/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ optint checkseum ];
- nativeCheckInputs = [ alcotest astring bigstringaf bos ctypes fmt camlzip base64 crowbar rresult ];
+ checkInputs = [ alcotest astring bigstringaf bos ctypes fmt camlzip base64 crowbar rresult ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/diet/default.nix b/pkgs/development/ocaml-modules/diet/default.nix
index dc4f5214208d..cd14d2a06af5 100644
--- a/pkgs/development/ocaml-modules/diet/default.nix
+++ b/pkgs/development/ocaml-modules/diet/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ stdlib-shims ];
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = with lib; {
homepage = "https://github.com/mirage/ocaml-diet";
diff --git a/pkgs/development/ocaml-modules/digestif/default.nix b/pkgs/development/ocaml-modules/digestif/default.nix
index cca890e997f0..75ecb7fc58fb 100644
--- a/pkgs/development/ocaml-modules/digestif/default.nix
+++ b/pkgs/development/ocaml-modules/digestif/default.nix
@@ -15,12 +15,11 @@ buildDunePackage rec {
sha256 = "sha256-edNM5ROxFIV+OAqr328UcyGPGwXdflHQOJB3ntAbRmY=";
};
- nativeBuildInputs = [ findlib which ];
- buildInputs = [ ocaml ];
+ nativeBuildInputs = [ findlib which ocaml pkg-config ];
propagatedBuildInputs = [ eqaf ];
- nativeCheckInputs = [ alcotest astring bos fpath ];
+ checkInputs = [ alcotest astring bos fpath ];
doCheck = true;
postCheck = ''
diff --git a/pkgs/development/ocaml-modules/dispatch/default.nix b/pkgs/development/ocaml-modules/dispatch/default.nix
index e6f6ffc86492..587f5a792dc7 100644
--- a/pkgs/development/ocaml-modules/dispatch/default.nix
+++ b/pkgs/development/ocaml-modules/dispatch/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ result ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/dns/cli.nix b/pkgs/development/ocaml-modules/dns/cli.nix
index dd2a8445867e..6e23eeecba97 100644
--- a/pkgs/development/ocaml-modules/dns/cli.nix
+++ b/pkgs/development/ocaml-modules/dns/cli.nix
@@ -39,7 +39,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/dns/client.nix b/pkgs/development/ocaml-modules/dns/client.nix
index 087c0a1efa1a..e8bd210dcd8c 100644
--- a/pkgs/development/ocaml-modules/dns/client.nix
+++ b/pkgs/development/ocaml-modules/dns/client.nix
@@ -12,11 +12,28 @@ buildDunePackage {
inherit (dns) src version;
duneVersion = "3";
- propagatedBuildInputs = [ cstruct fmt logs dns randomconv domain-name ipaddr
- lwt mirage-random mirage-time mirage-clock
- ca-certs ca-certs-nss happy-eyeballs tcpip tls tls-mirage
- mtime mirage-crypto-rng ];
- nativeCheckInputs = [ alcotest ];
+ propagatedBuildInputs = [
+ cstruct
+ fmt
+ logs
+ dns
+ randomconv
+ domain-name
+ ipaddr
+ lwt
+ mirage-random
+ mirage-time
+ mirage-clock
+ ca-certs
+ ca-certs-nss
+ happy-eyeballs
+ tcpip
+ tls
+ tls-mirage
+ mtime
+ mirage-crypto-rng
+ ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = dns.meta // {
diff --git a/pkgs/development/ocaml-modules/dns/default.nix b/pkgs/development/ocaml-modules/dns/default.nix
index e9ae3184b5a9..81bc741d974b 100644
--- a/pkgs/development/ocaml-modules/dns/default.nix
+++ b/pkgs/development/ocaml-modules/dns/default.nix
@@ -1,5 +1,17 @@
-{ lib, buildDunePackage, fetchurl, alcotest
-, cstruct, domain-name, duration, gmap, ipaddr, logs, lru, metrics, ptime, fmt
+{ lib
+, buildDunePackage
+, fetchurl
+, alcotest
+, cstruct
+, domain-name
+, duration
+, gmap
+, ipaddr
+, logs
+, lru
+, metrics
+, ptime
+, fmt
, base64
}:
@@ -18,7 +30,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt logs ptime domain-name gmap cstruct ipaddr lru duration metrics base64 ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "An Domain Name System (DNS) library";
diff --git a/pkgs/development/ocaml-modules/dns/dnssec.nix b/pkgs/development/ocaml-modules/dns/dnssec.nix
index 3b2b0e2374ba..de2a76052384 100644
--- a/pkgs/development/ocaml-modules/dns/dnssec.nix
+++ b/pkgs/development/ocaml-modules/dns/dnssec.nix
@@ -1,6 +1,13 @@
-{ buildDunePackage, cstruct, dns, mirage-crypto, mirage-crypto-pk, mirage-crypto-ec
-, domain-name, logs
-, alcotest, base64
+{ buildDunePackage
+, cstruct
+, dns
+, mirage-crypto
+, mirage-crypto-pk
+, mirage-crypto-ec
+, domain-name
+, logs
+, alcotest
+, base64
}:
buildDunePackage {
@@ -20,7 +27,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
base64
];
diff --git a/pkgs/development/ocaml-modules/dns/resolver.nix b/pkgs/development/ocaml-modules/dns/resolver.nix
index fb598746bbba..dd46a1534ed3 100644
--- a/pkgs/development/ocaml-modules/dns/resolver.nix
+++ b/pkgs/development/ocaml-modules/dns/resolver.nix
@@ -1,6 +1,18 @@
-{ buildDunePackage, dns, dns-server, dns-mirage, lru, duration
-, randomconv, lwt, mirage-time, mirage-clock, mirage-random
-, tcpip, tls, tls-mirage, dnssec
+{ buildDunePackage
+, dns
+, dns-server
+, dns-mirage
+, lru
+, duration
+, randomconv
+, lwt
+, mirage-time
+, mirage-clock
+, mirage-random
+, tcpip
+, tls
+, tls-mirage
+, dnssec
, alcotest
}:
@@ -28,7 +40,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/dns/server.nix b/pkgs/development/ocaml-modules/dns/server.nix
index e10ec3830076..049cf507e3ac 100644
--- a/pkgs/development/ocaml-modules/dns/server.nix
+++ b/pkgs/development/ocaml-modules/dns/server.nix
@@ -1,6 +1,16 @@
-{ buildDunePackage, dns, dns-mirage, randomconv, duration, lwt
-, mirage-time, mirage-clock, metrics
-, alcotest, mirage-crypto-rng, dns-tsig, base64
+{ buildDunePackage
+, dns
+, dns-mirage
+, randomconv
+, duration
+, lwt
+, mirage-time
+, mirage-clock
+, metrics
+, alcotest
+, mirage-crypto-rng
+, dns-tsig
+, base64
}:
buildDunePackage {
@@ -21,7 +31,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
mirage-crypto-rng
dns-tsig
diff --git a/pkgs/development/ocaml-modules/dns/tsig.nix b/pkgs/development/ocaml-modules/dns/tsig.nix
index d544e51f36f0..3ecc90d39853 100644
--- a/pkgs/development/ocaml-modules/dns/tsig.nix
+++ b/pkgs/development/ocaml-modules/dns/tsig.nix
@@ -13,7 +13,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/dolmen/default.nix b/pkgs/development/ocaml-modules/dolmen/default.nix
index 7a7a14192f9e..b27efe501944 100644
--- a/pkgs/development/ocaml-modules/dolmen/default.nix
+++ b/pkgs/development/ocaml-modules/dolmen/default.nix
@@ -7,8 +7,6 @@ buildDunePackage rec {
pname = "dolmen";
version = "0.6";
- useDune2 = true;
-
minimalOCamlVersion = "4.08";
src = fetchurl {
@@ -16,8 +14,6 @@ buildDunePackage rec {
sha256 = "133l23mwxa9xy340izvk4zp5jqjz2cwsm2innsgs2kg85pd39c41";
};
- strictDeps = true;
-
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ menhirLib fmt ];
diff --git a/pkgs/development/ocaml-modules/domain-name/default.nix b/pkgs/development/ocaml-modules/domain-name/default.nix
index f14172fcb591..afbfbb66391b 100644
--- a/pkgs/development/ocaml-modules/domain-name/default.nix
+++ b/pkgs/development/ocaml-modules/domain-name/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
minimalOCamlVersion = "4.04";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/domainslib/default.nix b/pkgs/development/ocaml-modules/domainslib/default.nix
index 8da2ed538fd7..8a36285fe697 100644
--- a/pkgs/development/ocaml-modules/domainslib/default.nix
+++ b/pkgs/development/ocaml-modules/domainslib/default.nix
@@ -1,4 +1,6 @@
-{ lib, fetchurl, buildDunePackage
+{ lib
+, fetchurl
+, buildDunePackage
, lockfree
, mirage-clock-unix
}:
@@ -18,7 +20,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ lockfree ];
doCheck = true;
- nativeCheckInputs = [ mirage-clock-unix ];
+ checkInputs = [ mirage-clock-unix ];
meta = {
homepage = "https://github.com/ocaml-multicore/domainslib";
diff --git a/pkgs/development/ocaml-modules/dose3/default.nix b/pkgs/development/ocaml-modules/dose3/default.nix
index a59395971544..1146da5d3067 100644
--- a/pkgs/development/ocaml-modules/dose3/default.nix
+++ b/pkgs/development/ocaml-modules/dose3/default.nix
@@ -34,11 +34,13 @@ buildDunePackage rec {
];
nativeCheckInputs = [
- dpkg # Replaces: conf-dpkg
- git
- ounit
python39 # Replaces: conf-python-3
python39Packages.pyyaml # Replaces: conf-python3-yaml
+ git
+ ];
+ checkInputs = [
+ dpkg # Replaces: conf-dpkg
+ ounit
];
doCheck = false; # Tests are failing.
# To enable tests use: lib.versionAtLeast ocaml.version "4.04";
diff --git a/pkgs/development/ocaml-modules/dtoa/default.nix b/pkgs/development/ocaml-modules/dtoa/default.nix
index 44bc5d7498bf..ffcfb38c6bf1 100644
--- a/pkgs/development/ocaml-modules/dtoa/default.nix
+++ b/pkgs/development/ocaml-modules/dtoa/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchurl, buildDunePackage }:
+{ stdenv, lib, fetchurl, buildDunePackage, ounit }:
buildDunePackage rec {
pname = "dtoa";
@@ -13,6 +13,10 @@ buildDunePackage rec {
sha256 = "0zkhn0rdq82g6gamsv6nkx6i44s8104nh6jg5xydazl9jl1704xn";
};
+ checkInputs = [ ounit ];
+
+ doCheck = true;
+
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/duff/default.nix b/pkgs/development/ocaml-modules/duff/default.nix
index 2564d2ed0756..583949cf1da4 100644
--- a/pkgs/development/ocaml-modules/duff/default.nix
+++ b/pkgs/development/ocaml-modules/duff/default.nix
@@ -1,6 +1,12 @@
-{ lib, fetchurl, buildDunePackage, ocaml
+{ lib
+, fetchurl
+, buildDunePackage
+, ocaml
, fmt
-, alcotest, hxd, crowbar, bigstringaf
+, alcotest
+, hxd
+, crowbar
+, bigstringaf
}:
buildDunePackage rec {
@@ -15,7 +21,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [
+ checkInputs = [
alcotest
crowbar
hxd
diff --git a/pkgs/development/ocaml-modules/dune-build-info/default.nix b/pkgs/development/ocaml-modules/dune-build-info/default.nix
index 5d9f105782b4..9eb7afa2c408 100644
--- a/pkgs/development/ocaml-modules/dune-build-info/default.nix
+++ b/pkgs/development/ocaml-modules/dune-build-info/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildDunePackage, dune_2 }:
+{ lib, buildDunePackage, dune_2, dune-action-plugin }:
buildDunePackage rec {
pname = "dune-build-info";
@@ -8,6 +8,8 @@ buildDunePackage rec {
dontAddPrefix = true;
+ buildInputs = [ dune-action-plugin ];
+
meta = with lib; {
inherit (dune_2.meta) homepage;
description = "Embed build information inside executables";
diff --git a/pkgs/development/ocaml-modules/duration/default.nix b/pkgs/development/ocaml-modules/duration/default.nix
index eeb974b135fb..1a1f9b07769f 100644
--- a/pkgs/development/ocaml-modules/duration/default.nix
+++ b/pkgs/development/ocaml-modules/duration/default.nix
@@ -12,7 +12,7 @@ buildDunePackage rec {
};
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/hannesm/duration";
diff --git a/pkgs/development/ocaml-modules/earlybird/default.nix b/pkgs/development/ocaml-modules/earlybird/default.nix
index 08c0a284fad2..209bf30d2a61 100644
--- a/pkgs/development/ocaml-modules/earlybird/default.nix
+++ b/pkgs/development/ocaml-modules/earlybird/default.nix
@@ -22,7 +22,9 @@ buildDunePackage rec {
hash = "sha256-8JHZWsgpz2pzpDxST3bkMSmPHtj7MDzD5G3ujqMW+MU=";
};
- buildInputs = [ cmdliner dap fmt iter logs lru lwt_ppx lwt_react menhir menhirLib path_glob ppx_deriving_yojson ];
+ nativeBuildInputs = [ menhir ];
+
+ buildInputs = [ cmdliner dap fmt iter logs lru lwt_ppx lwt_react menhirLib path_glob ppx_deriving_yojson ];
passthru.updateScript = gitUpdater { };
diff --git a/pkgs/development/ocaml-modules/elpi/default.nix b/pkgs/development/ocaml-modules/elpi/default.nix
index cc53f25b578c..1c60c963ed91 100644
--- a/pkgs/development/ocaml-modules/elpi/default.nix
+++ b/pkgs/development/ocaml-modules/elpi/default.nix
@@ -36,9 +36,12 @@ buildDunePackage rec {
minimalOCamlVersion = "4.04";
- buildInputs = [ perl ncurses ]
+ # atdgen is both a library and executable
+ nativeBuildInputs = [ perl camlp5 ]
++ lib.optional (lib.versionAtLeast version "1.15" || version == "dev") menhir
++ lib.optional (lib.versionAtLeast version "1.16" || version == "dev") atdgen;
+ buildInputs = [ ncurses ]
+ ++ lib.optional (lib.versionAtLeast version "1.16" || version == "dev") atdgen;
propagatedBuildInputs = [ re stdlib-shims ]
++ (if lib.versionAtLeast version "1.15" || version == "dev"
diff --git a/pkgs/development/ocaml-modules/emile/default.nix b/pkgs/development/ocaml-modules/emile/default.nix
index c76d79d5f81b..f1c61ce27e8d 100644
--- a/pkgs/development/ocaml-modules/emile/default.nix
+++ b/pkgs/development/ocaml-modules/emile/default.nix
@@ -1,6 +1,14 @@
-{ lib, buildDunePackage, fetchurl, ocaml
-, angstrom, ipaddr, base64, pecu, uutf
-, alcotest, cmdliner
+{ lib
+, buildDunePackage
+, fetchurl
+, ocaml
+, angstrom
+, ipaddr
+, base64
+, pecu
+, uutf
+, alcotest
+, cmdliner
}:
buildDunePackage rec {
@@ -28,7 +36,7 @@ buildDunePackage rec {
# and angstrom (fmt) are only available for >= 4.08. Disabling
# tests for < 4.08 at least improves the error message
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = with lib; {
description = "Parser of email address according RFC822";
diff --git a/pkgs/development/ocaml-modules/encore/default.nix b/pkgs/development/ocaml-modules/encore/default.nix
index 317446fc5ba4..7c15edabd589 100644
--- a/pkgs/development/ocaml-modules/encore/default.nix
+++ b/pkgs/development/ocaml-modules/encore/default.nix
@@ -1,5 +1,12 @@
-{ lib, buildDunePackage, fetchurl, ocaml
-, fmt, bigstringaf, angstrom, alcotest }:
+{ lib
+, buildDunePackage
+, fetchurl
+, ocaml
+, fmt
+, bigstringaf
+, angstrom
+, alcotest
+}:
buildDunePackage rec {
pname = "encore";
@@ -15,7 +22,7 @@ buildDunePackage rec {
useDune2 = true;
propagatedBuildInputs = [ angstrom fmt bigstringaf ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/ethernet/default.nix b/pkgs/development/ocaml-modules/ethernet/default.nix
index 59c581e128ae..6d76590c6ca9 100644
--- a/pkgs/development/ocaml-modules/ethernet/default.nix
+++ b/pkgs/development/ocaml-modules/ethernet/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
sha256 = "0a898vp9dw42majsvzzvs8pc6x4ns01wlwhwbacixliv6vv78ng9";
};
- nativeBuildInputs = [
+ buildInputs = [
ppx_cstruct
];
diff --git a/pkgs/development/ocaml-modules/faraday/default.nix b/pkgs/development/ocaml-modules/faraday/default.nix
index ff5ed12a998a..0dcfd5ec02de 100644
--- a/pkgs/development/ocaml-modules/faraday/default.nix
+++ b/pkgs/development/ocaml-modules/faraday/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
sha256 = "sha256-wR4kDocR1t3OLRuudXH8IccYde552O6Gvo5BHNxRbAI=";
};
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigstringaf ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/ff/default.nix b/pkgs/development/ocaml-modules/ff/default.nix
index 4d9c69ace619..5681b33cb768 100644
--- a/pkgs/development/ocaml-modules/ff/default.nix
+++ b/pkgs/development/ocaml-modules/ff/default.nix
@@ -9,7 +9,7 @@ buildDunePackage rec {
zarith
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
ff-pbt
];
diff --git a/pkgs/development/ocaml-modules/ff/pbt.nix b/pkgs/development/ocaml-modules/ff/pbt.nix
index 6c929e11b17e..ffd78381127b 100644
--- a/pkgs/development/ocaml-modules/ff/pbt.nix
+++ b/pkgs/development/ocaml-modules/ff/pbt.nix
@@ -6,7 +6,7 @@ buildDunePackage {
minimalOCamlVersion = "4.08";
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/fileutils/default.nix b/pkgs/development/ocaml-modules/fileutils/default.nix
index e2f5fdab4f44..0431c733cb90 100644
--- a/pkgs/development/ocaml-modules/fileutils/default.nix
+++ b/pkgs/development/ocaml-modules/fileutils/default.nix
@@ -16,7 +16,7 @@ buildDunePackage rec {
stdlib-shims
];
- nativeCheckInputs = [
+ checkInputs = [
ounit2
];
doCheck = lib.versionAtLeast ocaml.version "4.04";
diff --git a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
index 2fae764f5dd5..837a481cf1bd 100644
--- a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
+++ b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
@@ -20,7 +20,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ cryptokit ocamlnet ocurl yojson ];
doCheck = true;
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
meta = {
description = "OCaml client for google services";
diff --git a/pkgs/development/ocaml-modules/gen/default.nix b/pkgs/development/ocaml-modules/gen/default.nix
index 9242133ec236..ee932bffd5e6 100644
--- a/pkgs/development/ocaml-modules/gen/default.nix
+++ b/pkgs/development/ocaml-modules/gen/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ seq ];
- nativeCheckInputs = [ qcheck ounit2 ];
+ checkInputs = [ qcheck ounit2 ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/gg/default.nix b/pkgs/development/ocaml-modules/gg/default.nix
index ec8bbb31617d..c3bf3a2ec938 100644
--- a/pkgs/development/ocaml-modules/gg/default.nix
+++ b/pkgs/development/ocaml-modules/gg/default.nix
@@ -18,6 +18,8 @@ stdenv.mkDerivation {
sha256 = "sha256:0j7bpj8k17csnz6v6frkz9aycywsb7xmznnb31g8rbfk3626f3ci";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
diff --git a/pkgs/development/ocaml-modules/git/default.nix b/pkgs/development/ocaml-modules/git/default.nix
index b078ad973f22..957d53b39644 100644
--- a/pkgs/development/ocaml-modules/git/default.nix
+++ b/pkgs/development/ocaml-modules/git/default.nix
@@ -32,7 +32,10 @@ buildDunePackage rec {
domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
];
nativeCheckInputs = [
- alcotest alcotest-lwt mirage-crypto-rng git-binary crowbar cmdliner
+ git-binary
+ ];
+ checkInputs = [
+ alcotest alcotest-lwt mirage-crypto-rng crowbar cmdliner
];
doCheck = !stdenv.isAarch64;
diff --git a/pkgs/development/ocaml-modules/git/mirage.nix b/pkgs/development/ocaml-modules/git/mirage.nix
index b1e38c2ebfc9..28ce7c4a3f30 100644
--- a/pkgs/development/ocaml-modules/git/mirage.nix
+++ b/pkgs/development/ocaml-modules/git/mirage.nix
@@ -1,4 +1,5 @@
-{ lib, buildDunePackage
+{ lib
+, buildDunePackage
, git
, mimic
, mimic-happy-eyeballs
@@ -82,7 +83,7 @@ buildDunePackage {
result
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
alcotest-lwt
bigstringaf
diff --git a/pkgs/development/ocaml-modules/git/unix.nix b/pkgs/development/ocaml-modules/git/unix.nix
index 65a4619ac5d8..f5e8337382e4 100644
--- a/pkgs/development/ocaml-modules/git/unix.nix
+++ b/pkgs/development/ocaml-modules/git/unix.nix
@@ -18,8 +18,11 @@ buildDunePackage {
duneVersion = "3";
buildInputs = [
- awa awa-mirage cmdliner
- mirage-clock tcpip
+ awa
+ awa-mirage
+ cmdliner
+ mirage-clock
+ tcpip
];
propagatedBuildInputs = [
rresult result bigstringaf
@@ -30,12 +33,13 @@ buildDunePackage {
tls tls-mirage git happy-eyeballs-lwt
git-mirage mirage-clock-unix
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest alcotest-lwt base64 ke
- mirage-crypto-rng git-binary
+ mirage-crypto-rng
uri mtime
cacert # sets up NIX_SSL_CERT_FILE
];
+ nativeCheckInputs = [ git-binary ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/gmap/default.nix b/pkgs/development/ocaml-modules/gmap/default.nix
index 7cdddfe101de..ce13b0e1cee3 100644
--- a/pkgs/development/ocaml-modules/gmap/default.nix
+++ b/pkgs/development/ocaml-modules/gmap/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildDunePackage, ocaml, fetchurl, alcotest }:
+{ lib, buildDunePackage, ocaml, fetchurl, alcotest, fmt }:
buildDunePackage rec {
pname = "gmap";
@@ -13,7 +13,7 @@ buildDunePackage rec {
minimumOCamlVersion = "4.03";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest fmt ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/graphql/cohttp.nix b/pkgs/development/ocaml-modules/graphql/cohttp.nix
index b4f836215de4..b202d46abd53 100644
--- a/pkgs/development/ocaml-modules/graphql/cohttp.nix
+++ b/pkgs/development/ocaml-modules/graphql/cohttp.nix
@@ -1,6 +1,14 @@
-{ lib, buildDunePackage, ocaml-crunch
-, astring, cohttp, digestif, graphql, ocplib-endian
-, alcotest, cohttp-lwt-unix, graphql-lwt
+{ lib
+, buildDunePackage
+, ocaml-crunch
+, astring
+, cohttp
+, digestif
+, graphql
+, ocplib-endian
+, alcotest
+, cohttp-lwt-unix
+, graphql-lwt
}:
buildDunePackage rec {
@@ -13,7 +21,7 @@ buildDunePackage rec {
nativeBuildInputs = [ ocaml-crunch ];
propagatedBuildInputs = [ astring cohttp digestif graphql ocplib-endian ];
- nativeCheckInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];
+ checkInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/graphql/default.nix b/pkgs/development/ocaml-modules/graphql/default.nix
index b0426500b310..679d89f44b10 100644
--- a/pkgs/development/ocaml-modules/graphql/default.nix
+++ b/pkgs/development/ocaml-modules/graphql/default.nix
@@ -9,7 +9,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ graphql_parser rresult yojson ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/graphql/lwt.nix b/pkgs/development/ocaml-modules/graphql/lwt.nix
index 396de94bc289..cbdcba64abb4 100644
--- a/pkgs/development/ocaml-modules/graphql/lwt.nix
+++ b/pkgs/development/ocaml-modules/graphql/lwt.nix
@@ -9,7 +9,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ graphql ocaml_lwt ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix
index 25432d9ad8a5..4042e65772bc 100644
--- a/pkgs/development/ocaml-modules/graphql/parser.nix
+++ b/pkgs/development/ocaml-modules/graphql/parser.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ fmt re ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/graphql_ppx/default.nix b/pkgs/development/ocaml-modules/graphql_ppx/default.nix
index 1c3351f791df..9314c1033d4c 100644
--- a/pkgs/development/ocaml-modules/graphql_ppx/default.nix
+++ b/pkgs/development/ocaml-modules/graphql_ppx/default.nix
@@ -18,7 +18,9 @@ buildDunePackage rec {
sha256 = "sha256-+WJhA2ixZHiSZBoX14dnQKk7JfVAIME4JooNSnhRp44=";
};
- buildInputs = [ ppxlib ];
+ nativeBuildInputs = [ reason ];
+
+ buildInputs = [ ppxlib reason ];
propagatedBuildInputs = [
reason
@@ -26,7 +28,7 @@ buildDunePackage rec {
yojson
];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/h2/default.nix b/pkgs/development/ocaml-modules/h2/default.nix
index 6f60330e40cc..95272890e15f 100644
--- a/pkgs/development/ocaml-modules/h2/default.nix
+++ b/pkgs/development/ocaml-modules/h2/default.nix
@@ -46,7 +46,7 @@ buildDunePackage rec {
preCheck = ''
ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
'';
- nativeCheckInputs = [
+ checkInputs = [
alcotest
yojson
hex
diff --git a/pkgs/development/ocaml-modules/happy-eyeballs/default.nix b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix
index d5b0691fdffa..a3a2a3cff1f9 100644
--- a/pkgs/development/ocaml-modules/happy-eyeballs/default.nix
+++ b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix
@@ -13,8 +13,6 @@ buildDunePackage rec {
hash = "sha256-gR9q4J/DnYJz8oYmk/wy17h4F6wxbllba/gkor5i1nQ=";
};
- strictDeps = true;
-
propagatedBuildInputs = [
domain-name
duration
diff --git a/pkgs/development/ocaml-modules/happy-eyeballs/lwt.nix b/pkgs/development/ocaml-modules/happy-eyeballs/lwt.nix
index 9160b9233fa5..50f1f9455739 100644
--- a/pkgs/development/ocaml-modules/happy-eyeballs/lwt.nix
+++ b/pkgs/development/ocaml-modules/happy-eyeballs/lwt.nix
@@ -19,8 +19,6 @@ buildDunePackage {
minimalOCamlVersion = "4.08";
duneVersion = "3";
- strictDeps = true;
-
buildInputs = [
cmdliner
duration
diff --git a/pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix b/pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix
index 22f17111e44b..eb15706efac9 100644
--- a/pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix
+++ b/pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix
@@ -21,8 +21,6 @@ buildDunePackage {
minimalOCamlVersion = "4.08";
duneVersion = "3";
- strictDeps = true;
-
buildInputs = [
duration
ipaddr
diff --git a/pkgs/development/ocaml-modules/hidapi/default.nix b/pkgs/development/ocaml-modules/hidapi/default.nix
index b4492f438ccc..68fc506222de 100644
--- a/pkgs/development/ocaml-modules/hidapi/default.nix
+++ b/pkgs/development/ocaml-modules/hidapi/default.nix
@@ -13,8 +13,6 @@ buildDunePackage rec {
sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
};
- strictDeps = true;
-
minimumOCamlVersion = "4.03";
nativeBuildInputs = [ pkg-config ];
diff --git a/pkgs/development/ocaml-modules/hkdf/default.nix b/pkgs/development/ocaml-modules/hkdf/default.nix
index 5921c6c9d359..3df9ad5307c0 100644
--- a/pkgs/development/ocaml-modules/hkdf/default.nix
+++ b/pkgs/development/ocaml-modules/hkdf/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
};
propagatedBuildInputs = [ cstruct mirage-crypto ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix
index 691e09a410e7..508b2e4b7f76 100644
--- a/pkgs/development/ocaml-modules/httpaf/default.nix
+++ b/pkgs/development/ocaml-modules/httpaf/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
sha256 = "0zk78af3qyvf6w66mg8sxygr6ndayzqw5s3zfxibvn121xwni26z";
};
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
propagatedBuildInputs = [ angstrom faraday ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/imagelib/default.nix b/pkgs/development/ocaml-modules/imagelib/default.nix
index 27ad2b5f0029..10509f1e7500 100644
--- a/pkgs/development/ocaml-modules/imagelib/default.nix
+++ b/pkgs/development/ocaml-modules/imagelib/default.nix
@@ -1,5 +1,10 @@
-{ lib, fetchurl, buildDunePackage, ocaml
-, decompress, stdlib-shims, alcotest
+{ lib
+, fetchurl
+, buildDunePackage
+, ocaml
+, decompress
+, stdlib-shims
+, alcotest
}:
buildDunePackage rec {
@@ -17,7 +22,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ decompress stdlib-shims ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "Image formats such as PNG and PPM in OCaml";
diff --git a/pkgs/development/ocaml-modules/index/default.nix b/pkgs/development/ocaml-modules/index/default.nix
index f38d1f495f44..04373cbcce8d 100644
--- a/pkgs/development/ocaml-modules/index/default.nix
+++ b/pkgs/development/ocaml-modules/index/default.nix
@@ -31,7 +31,7 @@ buildDunePackage rec {
lru
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
crowbar
re
diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix
index 026985efcb6e..2dce9320afd4 100644
--- a/pkgs/development/ocaml-modules/inotify/default.nix
+++ b/pkgs/development/ocaml-modules/inotify/default.nix
@@ -15,10 +15,8 @@ buildDunePackage rec {
};
buildInputs = [ lwt ];
- nativeCheckInputs = [ ounit2 fileutils ];
- # Otherwise nativeCheckInputs can't be found
- strictDeps = false;
+ checkInputs = [ ounit2 fileutils ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/io-page/default.nix b/pkgs/development/ocaml-modules/io-page/default.nix
index 915bea6ff046..b57628222405 100644
--- a/pkgs/development/ocaml-modules/io-page/default.nix
+++ b/pkgs/development/ocaml-modules/io-page/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, buildDunePackage, cstruct, bigarray-compat, ounit }:
+{ lib, fetchurl, buildDunePackage, pkg-config, cstruct, bigarray-compat, ounit }:
buildDunePackage rec {
pname = "io-page";
@@ -11,8 +11,9 @@ buildDunePackage rec {
sha256 = "sha256-DjbKdNkFa6YQgJDLmLsuvyrweb4/TNvqAiggcj/3hu4=";
};
+ nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ cstruct bigarray-compat ];
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/ipaddr/default.nix b/pkgs/development/ocaml-modules/ipaddr/default.nix
index 5055aa7bbbd4..c4eefb637fb5 100644
--- a/pkgs/development/ocaml-modules/ipaddr/default.nix
+++ b/pkgs/development/ocaml-modules/ipaddr/default.nix
@@ -10,7 +10,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ macaddr domain-name stdlib-shims ];
- nativeCheckInputs = [ ppx_sexp_conv ounit ];
+ checkInputs = [ ppx_sexp_conv ounit ];
doCheck = true;
meta = macaddr.meta // {
diff --git a/pkgs/development/ocaml-modules/ipaddr/sexp.nix b/pkgs/development/ocaml-modules/ipaddr/sexp.nix
index 6f94382cf3a3..373b5a87e495 100644
--- a/pkgs/development/ocaml-modules/ipaddr/sexp.nix
+++ b/pkgs/development/ocaml-modules/ipaddr/sexp.nix
@@ -9,7 +9,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ ipaddr ];
- nativeCheckInputs = [ ipaddr-cstruct ounit ppx_sexp_conv ];
+ checkInputs = [ ipaddr-cstruct ounit ppx_sexp_conv ];
doCheck = true;
meta = ipaddr.meta // {
diff --git a/pkgs/development/ocaml-modules/irmin/chunk.nix b/pkgs/development/ocaml-modules/irmin/chunk.nix
index 39ef6b00068f..59bd81544945 100644
--- a/pkgs/development/ocaml-modules/irmin/chunk.nix
+++ b/pkgs/development/ocaml-modules/irmin/chunk.nix
@@ -8,7 +8,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ irmin fmt logs lwt ];
doCheck = true;
- nativeCheckInputs = [ alcotest irmin-test ];
+ checkInputs = [ alcotest irmin-test ];
meta = irmin.meta // {
description = "Irmin backend which allow to store values into chunks";
diff --git a/pkgs/development/ocaml-modules/irmin/containers.nix b/pkgs/development/ocaml-modules/irmin/containers.nix
index fe7eb3ffc569..73cd25f3170d 100644
--- a/pkgs/development/ocaml-modules/irmin/containers.nix
+++ b/pkgs/development/ocaml-modules/irmin/containers.nix
@@ -13,12 +13,18 @@ buildDunePackage {
];
propagatedBuildInputs = [
- irmin irmin-fs ppx_irmin lwt mtime
+ irmin
+ irmin-fs
+ ppx_irmin
+ lwt
+ mtime
];
doCheck = true;
- nativeCheckInputs = [
- alcotest alcotest-lwt cacert
+ checkInputs = [
+ alcotest
+ alcotest-lwt
+ cacert
];
meta = ppx_irmin.meta // {
diff --git a/pkgs/development/ocaml-modules/irmin/default.nix b/pkgs/development/ocaml-modules/irmin/default.nix
index 13ae4109de06..66b572f576d6 100644
--- a/pkgs/development/ocaml-modules/irmin/default.nix
+++ b/pkgs/development/ocaml-modules/irmin/default.nix
@@ -28,7 +28,7 @@ buildDunePackage {
uutf
];
- nativeCheckInputs = [
+ checkInputs = [
vector
hex
alcotest
diff --git a/pkgs/development/ocaml-modules/irmin/fs.nix b/pkgs/development/ocaml-modules/irmin/fs.nix
index 196f75ff26f0..1788cf1eda23 100644
--- a/pkgs/development/ocaml-modules/irmin/fs.nix
+++ b/pkgs/development/ocaml-modules/irmin/fs.nix
@@ -1,5 +1,6 @@
{ lib, buildDunePackage, irmin, astring, logs, lwt
-, alcotest, irmin-test, irmin-watcher }:
+, alcotest, irmin-test, irmin-watcher
+}:
buildDunePackage rec {
@@ -9,7 +10,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ irmin astring logs lwt ];
- nativeCheckInputs = [ alcotest irmin-test irmin-watcher ];
+ checkInputs = [ alcotest irmin-test irmin-watcher ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/irmin/git.nix b/pkgs/development/ocaml-modules/irmin/git.nix
index b3259372860b..c48928159130 100644
--- a/pkgs/development/ocaml-modules/irmin/git.nix
+++ b/pkgs/development/ocaml-modules/irmin/git.nix
@@ -30,7 +30,7 @@ buildDunePackage {
cohttp-lwt-unix
];
- nativeCheckInputs = [ mtime alcotest irmin-test cacert ];
+ checkInputs = [ mtime alcotest irmin-test cacert ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/irmin/graphql.nix b/pkgs/development/ocaml-modules/irmin/graphql.nix
index 21fe590c056b..005bf25eb2d9 100644
--- a/pkgs/development/ocaml-modules/irmin/graphql.nix
+++ b/pkgs/development/ocaml-modules/irmin/graphql.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
alcotest-lwt
logs
diff --git a/pkgs/development/ocaml-modules/irmin/http.nix b/pkgs/development/ocaml-modules/irmin/http.nix
index 5cf57fe047cc..9a466928c64a 100644
--- a/pkgs/development/ocaml-modules/irmin/http.nix
+++ b/pkgs/development/ocaml-modules/irmin/http.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ astring cohttp-lwt cohttp-lwt-unix fmt jsonm logs lwt uri irmin webmachine ];
- nativeCheckInputs = [
+ checkInputs = [
digestif git-unix irmin-git irmin-test irmin-fs cacert
];
diff --git a/pkgs/development/ocaml-modules/irmin/pack.nix b/pkgs/development/ocaml-modules/irmin/pack.nix
index 7056a2f63e6c..a1a2974a4d74 100644
--- a/pkgs/development/ocaml-modules/irmin/pack.nix
+++ b/pkgs/development/ocaml-modules/irmin/pack.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ index irmin optint fmt logs lwt mtime cmdliner ];
- nativeCheckInputs = [ astring alcotest alcotest-lwt irmin-test ];
+ checkInputs = [ astring alcotest alcotest-lwt irmin-test ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/irmin/ppx.nix b/pkgs/development/ocaml-modules/irmin/ppx.nix
index 2e21331c22e6..83cd5b1d7f5f 100644
--- a/pkgs/development/ocaml-modules/irmin/ppx.nix
+++ b/pkgs/development/ocaml-modules/irmin/ppx.nix
@@ -11,8 +11,6 @@ buildDunePackage rec {
minimalOCamlVersion = "4.10";
- strictDeps = false; # We must provide nativeCheckInputs as buildInputs because dune builds tests at build time
-
propagatedBuildInputs = [
ppx_repr
ppxlib
diff --git a/pkgs/development/ocaml-modules/irmin/test.nix b/pkgs/development/ocaml-modules/irmin/test.nix
index ee13bf426768..942200bf429a 100644
--- a/pkgs/development/ocaml-modules/irmin/test.nix
+++ b/pkgs/development/ocaml-modules/irmin/test.nix
@@ -27,7 +27,7 @@ buildDunePackage {
metrics
];
- nativeCheckInputs = [ hex vector ];
+ checkInputs = [ hex vector ];
meta = irmin.meta // {
description = "Irmin test suite";
diff --git a/pkgs/development/ocaml-modules/irmin/tezos.nix b/pkgs/development/ocaml-modules/irmin/tezos.nix
index 2549a783bde6..82a89daec359 100644
--- a/pkgs/development/ocaml-modules/irmin/tezos.nix
+++ b/pkgs/development/ocaml-modules/irmin/tezos.nix
@@ -9,20 +9,20 @@ buildDunePackage rec {
inherit (irmin) version src strictDeps;
propagatedBuildInputs = [
- irmin
- irmin-pack
- ppx_irmin
- digestif
- fmt
- tezos-base58
+ irmin
+ irmin-pack
+ ppx_irmin
+ digestif
+ fmt
+ tezos-base58
];
buildInputs = [
- cmdliner
- yojson
+ cmdliner
+ yojson
];
- nativeCheckInputs = [ alcotest hex irmin-test fpath ];
+ checkInputs = [ alcotest hex irmin-test fpath ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix
index 62ea8f78b45c..26adaf06d1ee 100644
--- a/pkgs/development/ocaml-modules/iter/default.nix
+++ b/pkgs/development/ocaml-modules/iter/default.nix
@@ -18,7 +18,8 @@ buildDunePackage rec {
propagatedBuildInputs = [ result seq ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ mdx.bin ounit2 qcheck-core ];
+ nativeCheckInputs = [ mdx.bin ];
+ checkInputs = [ ounit2 qcheck-core ];
meta = {
homepage = "https://github.com/c-cube/sequence";
diff --git a/pkgs/development/ocaml-modules/janestreet/0.14.nix b/pkgs/development/ocaml-modules/janestreet/0.14.nix
index d32c2027df4f..075f7c1f57d6 100644
--- a/pkgs/development/ocaml-modules/janestreet/0.14.nix
+++ b/pkgs/development/ocaml-modules/janestreet/0.14.nix
@@ -155,7 +155,7 @@ with self;
meta.description = "Full standard library replacement for OCaml";
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ sexplib0 ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
};
base_bigstring = janePackage {
@@ -205,9 +205,7 @@ with self;
minimumOCamlVersion = "4.07";
meta.description = "Trivial metaprogramming tool";
propagatedBuildInputs = [ re ];
- nativeCheckInputs = [ ppx_jane ];
- # This currently fails with dune
- strictDeps = false;
+ checkInputs = [ ppx_jane ];
};
core = janePackage {
@@ -782,9 +780,7 @@ with self;
meta.description = "Yet another implementation of fork&exec and related functionality";
buildInputs = [ jst-config ];
propagatedBuildInputs = [ textutils ];
- nativeCheckInputs = [ ounit ];
- # This currently fails with dune
- strictDeps = false;
+ checkInputs = [ ounit ];
};
shexp = janePackage {
diff --git a/pkgs/development/ocaml-modules/janestreet/0.15.nix b/pkgs/development/ocaml-modules/janestreet/0.15.nix
index af040a739478..7433c116b68f 100644
--- a/pkgs/development/ocaml-modules/janestreet/0.15.nix
+++ b/pkgs/development/ocaml-modules/janestreet/0.15.nix
@@ -177,7 +177,7 @@ with self;
meta.description = "Full standard library replacement for OCaml";
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ sexplib0 ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
};
base_bigstring = janePackage {
@@ -958,9 +958,7 @@ with self;
meta.description = "Yet another implementation of fork&exec and related functionality";
buildInputs = [ jst-config ];
propagatedBuildInputs = [ textutils ];
- nativeCheckInputs = [ ounit ];
- # This currently fails with dune
- strictDeps = false;
+ checkInputs = [ ounit ];
};
shexp = janePackage {
diff --git a/pkgs/development/ocaml-modules/janestreet/janePackage.nix b/pkgs/development/ocaml-modules/janestreet/janePackage.nix
index da2687576015..9552268abc2e 100644
--- a/pkgs/development/ocaml-modules/janestreet/janePackage.nix
+++ b/pkgs/development/ocaml-modules/janestreet/janePackage.nix
@@ -16,8 +16,6 @@ buildDunePackage (args // {
sha256 = hash;
};
- strictDeps = true;
-
meta = {
license = lib.licenses.asl20;
homepage = "https://github.com/janestreet/${pname}";
diff --git a/pkgs/development/ocaml-modules/janestreet/janePackage_0_12.nix b/pkgs/development/ocaml-modules/janestreet/janePackage_0_12.nix
index 5b9186835701..d61f1b6d41c2 100644
--- a/pkgs/development/ocaml-modules/janestreet/janePackage_0_12.nix
+++ b/pkgs/development/ocaml-modules/janestreet/janePackage_0_12.nix
@@ -16,8 +16,6 @@ buildDunePackage (args // {
sha256 = hash;
};
- strictDeps = true;
-
meta = {
license = lib.licenses.mit;
homepage = "https://github.com/janestreet/${pname}";
diff --git a/pkgs/development/ocaml-modules/janestreet/janePackage_0_14.nix b/pkgs/development/ocaml-modules/janestreet/janePackage_0_14.nix
index d124baea8972..e3c3efc9999e 100644
--- a/pkgs/development/ocaml-modules/janestreet/janePackage_0_14.nix
+++ b/pkgs/development/ocaml-modules/janestreet/janePackage_0_14.nix
@@ -6,12 +6,11 @@
, minimumOCamlVersion ? "4.08"
, doCheck ? true
, buildInputs ? []
-, strictDeps ? true
, ...}@args:
buildDunePackage (args // {
useDune2 = true;
- inherit version buildInputs strictDeps;
+ inherit version buildInputs;
inherit minimumOCamlVersion;
diff --git a/pkgs/development/ocaml-modules/janestreet/janePackage_0_15.nix b/pkgs/development/ocaml-modules/janestreet/janePackage_0_15.nix
index 678599089946..7306ce46bf99 100644
--- a/pkgs/development/ocaml-modules/janestreet/janePackage_0_15.nix
+++ b/pkgs/development/ocaml-modules/janestreet/janePackage_0_15.nix
@@ -6,12 +6,11 @@
, minimumOCamlVersion ? "4.11"
, doCheck ? true
, buildInputs ? []
-, strictDeps ? true
, ...}@args:
buildDunePackage (args // {
useDune2 = true;
- inherit version buildInputs strictDeps;
+ inherit version buildInputs;
inherit minimumOCamlVersion;
diff --git a/pkgs/development/ocaml-modules/jingoo/default.nix b/pkgs/development/ocaml-modules/jingoo/default.nix
index 3029f4084cfe..5ee48d3ed2d6 100644
--- a/pkgs/development/ocaml-modules/jingoo/default.nix
+++ b/pkgs/development/ocaml-modules/jingoo/default.nix
@@ -1,5 +1,6 @@
{ lib, buildDunePackage, fetchFromGitHub
-, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2 }:
+, menhir, ppxlib, ppx_deriving, re, uutf, uucp, ounit2
+}:
buildDunePackage rec {
pname = "jingoo";
@@ -16,9 +17,9 @@ buildDunePackage rec {
sha256 = "sha256-qIw69OE7wYyZYKnIc9QrmF8MzY5Fg5pBFyIpexmaYxA=";
};
- buildInputs = [ menhir ];
+ nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ ppxlib ppx_deriving re uutf uucp ];
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/json-data-encoding/bson.nix b/pkgs/development/ocaml-modules/json-data-encoding/bson.nix
index a92c4839ab5d..46810ab1566b 100644
--- a/pkgs/development/ocaml-modules/json-data-encoding/bson.nix
+++ b/pkgs/development/ocaml-modules/json-data-encoding/bson.nix
@@ -10,7 +10,7 @@ buildDunePackage {
ocplib-endian
];
- nativeCheckInputs = [
+ checkInputs = [
crowbar
alcotest
];
diff --git a/pkgs/development/ocaml-modules/json-data-encoding/default.nix b/pkgs/development/ocaml-modules/json-data-encoding/default.nix
index ff3667bd79fc..13b81d9c5271 100644
--- a/pkgs/development/ocaml-modules/json-data-encoding/default.nix
+++ b/pkgs/development/ocaml-modules/json-data-encoding/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
uri
];
- nativeCheckInputs = [
+ checkInputs = [
crowbar
alcotest
];
diff --git a/pkgs/development/ocaml-modules/jwto/default.nix b/pkgs/development/ocaml-modules/jwto/default.nix
index f8ba36d9690b..745f86dff52b 100644
--- a/pkgs/development/ocaml-modules/jwto/default.nix
+++ b/pkgs/development/ocaml-modules/jwto/default.nix
@@ -22,7 +22,7 @@ buildDunePackage rec {
propagatedBuildInputs =
[ digestif fmt yojson base64 re ppx_deriving ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/ke/default.nix b/pkgs/development/ocaml-modules/ke/default.nix
index 519b0c1725c8..243824947983 100644
--- a/pkgs/development/ocaml-modules/ke/default.nix
+++ b/pkgs/development/ocaml-modules/ke/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt ];
- nativeCheckInputs = [ alcotest bigstringaf ];
+ checkInputs = [ alcotest bigstringaf ];
doCheck = true;
minimalOCamlVersion = "4.08";
diff --git a/pkgs/development/ocaml-modules/lablgl/default.nix b/pkgs/development/ocaml-modules/lablgl/default.nix
index b010272b54b4..55dd88d7246b 100644
--- a/pkgs/development/ocaml-modules/lablgl/default.nix
+++ b/pkgs/development/ocaml-modules/lablgl/default.nix
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256:141kc816iv59z96738i3vn9m9iw9g2zhi45hk4cchpwd99ar5l6k";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ freeglut ];
propagatedBuildInputs = [ libGLU libGL ];
diff --git a/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix b/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix
index bcf82e1c3842..3d5135d7439a 100644
--- a/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix
+++ b/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "09fqxwdib7r9yxynknc9gv3jw2hnhj5cak7q5jngk6m8rzvmhfcc";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib camlp4 ];
propagatedBuildInputs = [ config-file lablgtk xmlm ];
diff --git a/pkgs/development/ocaml-modules/lablgtk-extras/default.nix b/pkgs/development/ocaml-modules/lablgtk-extras/default.nix
index 75b3940a1d50..66728db65566 100644
--- a/pkgs/development/ocaml-modules/lablgtk-extras/default.nix
+++ b/pkgs/development/ocaml-modules/lablgtk-extras/default.nix
@@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
sha256 = "1bbdp5j18s582mmyd7qiaq1p08g2ag4gl7x65pmzahbhg719hjda";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib camlp4 ];
propagatedBuildInputs = [ config-file lablgtk xmlm ];
diff --git a/pkgs/development/ocaml-modules/labltk/default.nix b/pkgs/development/ocaml-modules/labltk/default.nix
index 4d5c4ae303e8..465c82da1210 100644
--- a/pkgs/development/ocaml-modules/labltk/default.nix
+++ b/pkgs/development/ocaml-modules/labltk/default.nix
@@ -59,6 +59,8 @@ stdenv.mkDerivation rec {
inherit (param) version src;
pname = "ocaml${ocaml.version}-labltk";
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib makeWrapper ];
buildInputs = [ tcl tk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
diff --git a/pkgs/development/ocaml-modules/lambda-term/default.nix b/pkgs/development/ocaml-modules/lambda-term/default.nix
index c073ddf39cd2..a2294822a0ca 100644
--- a/pkgs/development/ocaml-modules/lambda-term/default.nix
+++ b/pkgs/development/ocaml-modules/lambda-term/default.nix
@@ -16,8 +16,6 @@ buildDunePackage rec {
duneVersion = if lib.versionAtLeast ocaml.version "4.08" then "3" else "2";
- strictDeps = true;
-
src = fetchFromGitHub {
owner = "ocaml-community";
repo = pname;
diff --git a/pkgs/development/ocaml-modules/lambdapi/default.nix b/pkgs/development/ocaml-modules/lambdapi/default.nix
index f0509c243e12..1478687fe5e3 100644
--- a/pkgs/development/ocaml-modules/lambdapi/default.nix
+++ b/pkgs/development/ocaml-modules/lambdapi/default.nix
@@ -33,8 +33,8 @@ buildDunePackage rec {
bindlib camlp-streams cmdliner pratter sedlex stdlib-shims timed why3 yojson
];
- nativeCheckInputs = [ alcotest dedukti ];
- doCheck = false; # anomaly: Sys_error("/homeless-shelter/.why3.conf: No such file or directory")
+ checkInputs = [ alcotest dedukti ];
+ doCheck = false; # anomaly: Sys_error("/homeless-shelter/.why3.conf: No such file or directory")
meta = with lib; {
homepage = "https://github.com/Deducteam/lambdapi";
diff --git a/pkgs/development/ocaml-modules/lambdasoup/default.nix b/pkgs/development/ocaml-modules/lambdasoup/default.nix
index ee3876d5da42..d7d0028b2c15 100644
--- a/pkgs/development/ocaml-modules/lambdasoup/default.nix
+++ b/pkgs/development/ocaml-modules/lambdasoup/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ markup ];
doCheck = lib.versionAtLeast ocaml.version "4.04";
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
meta = {
description = "Functional HTML scraping and rewriting with CSS in OCaml";
diff --git a/pkgs/development/ocaml-modules/lens/default.nix b/pkgs/development/ocaml-modules/lens/default.nix
index efebb5309e46..c9cd5572bc7f 100644
--- a/pkgs/development/ocaml-modules/lens/default.nix
+++ b/pkgs/development/ocaml-modules/lens/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
buildInputs = [ ppx_deriving ppxlib ];
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = with lib; {
homepage = "https://github.com/pdonadeo/ocaml-lens";
diff --git a/pkgs/development/ocaml-modules/letsencrypt/default.nix b/pkgs/development/ocaml-modules/letsencrypt/default.nix
index 6f14af03e5c6..13875147a4e5 100644
--- a/pkgs/development/ocaml-modules/letsencrypt/default.nix
+++ b/pkgs/development/ocaml-modules/letsencrypt/default.nix
@@ -52,7 +52,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = {
description = "ACME implementation in OCaml";
diff --git a/pkgs/development/ocaml-modules/lockfree/default.nix b/pkgs/development/ocaml-modules/lockfree/default.nix
index 6a8e871bda41..c3400d4583e0 100644
--- a/pkgs/development/ocaml-modules/lockfree/default.nix
+++ b/pkgs/development/ocaml-modules/lockfree/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ dscheck ];
doCheck = true;
- nativeCheckInputs = [ qcheck qcheck-alcotest ];
+ checkInputs = [ qcheck qcheck-alcotest ];
meta = {
description = "Lock-free data structures for multicore OCaml";
diff --git a/pkgs/development/ocaml-modules/lru/default.nix b/pkgs/development/ocaml-modules/lru/default.nix
index dfa765d56493..678023bb8f3d 100644
--- a/pkgs/development/ocaml-modules/lru/default.nix
+++ b/pkgs/development/ocaml-modules/lru/default.nix
@@ -12,7 +12,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ psq ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ qcheck-alcotest ];
+ checkInputs = [ qcheck-alcotest ];
meta = {
homepage = "https://github.com/pqwy/lru";
diff --git a/pkgs/development/ocaml-modules/luv/default.nix b/pkgs/development/ocaml-modules/luv/default.nix
index e2df6f321fdc..da7f9ba1808f 100644
--- a/pkgs/development/ocaml-modules/luv/default.nix
+++ b/pkgs/development/ocaml-modules/luv/default.nix
@@ -22,7 +22,7 @@ buildDunePackage rec {
nativeBuildInputs = [ file ];
propagatedBuildInputs = [ ctypes result ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/lwt-dllist/default.nix b/pkgs/development/ocaml-modules/lwt-dllist/default.nix
index 12675eda9a1e..b28981b1b779 100644
--- a/pkgs/development/ocaml-modules/lwt-dllist/default.nix
+++ b/pkgs/development/ocaml-modules/lwt-dllist/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
sha256 = "e86ce75e40f00d51514cf8b2e71e5184c4cb5dae96136be24613406cfc0dba6e";
};
- nativeCheckInputs = [
+ checkInputs = [
lwt
];
doCheck = lib.versionAtLeast ocaml.version "4.03";
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix
index 9be06c2e6112..8004cfcd4bb4 100644
--- a/pkgs/development/ocaml-modules/lwt/default.nix
+++ b/pkgs/development/ocaml-modules/lwt/default.nix
@@ -15,8 +15,6 @@ buildDunePackage rec {
sha256 = "sha256-XstKs0tMwliCyXnP0Vzi5WC27HKJGnATUYtbbQmH1TE=";
};
- strictDeps = true;
-
nativeBuildInputs = [ cppo ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ libev ocplib-endian ];
diff --git a/pkgs/development/ocaml-modules/macaddr/default.nix b/pkgs/development/ocaml-modules/macaddr/default.nix
index 18bc15673bd9..7eb74ff064d0 100644
--- a/pkgs/development/ocaml-modules/macaddr/default.nix
+++ b/pkgs/development/ocaml-modules/macaddr/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
sha256 = "0mdp38mkvk2f5h2q7nb9fc70a8hyssblnl7kam0d8r5lckgrx5rn";
};
- nativeCheckInputs = [ ppx_sexp_conv ounit ];
+ checkInputs = [ ppx_sexp_conv ounit ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/macaddr/sexp.nix b/pkgs/development/ocaml-modules/macaddr/sexp.nix
index 15d5602e7e03..1f03c1326a53 100644
--- a/pkgs/development/ocaml-modules/macaddr/sexp.nix
+++ b/pkgs/development/ocaml-modules/macaddr/sexp.nix
@@ -9,7 +9,7 @@ buildDunePackage {
propagatedBuildInputs = [ ppx_sexp_conv ];
- nativeCheckInputs = [ macaddr-cstruct ounit ];
+ checkInputs = [ macaddr-cstruct ounit ];
doCheck = true;
meta = macaddr.meta // {
diff --git a/pkgs/development/ocaml-modules/markup/default.nix b/pkgs/development/ocaml-modules/markup/default.nix
index 178232633552..535557c0e8df 100644
--- a/pkgs/development/ocaml-modules/markup/default.nix
+++ b/pkgs/development/ocaml-modules/markup/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ uchar uutf ];
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
doCheck = lib.versionAtLeast ocaml.version "4.04";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/mdx/default.nix b/pkgs/development/ocaml-modules/mdx/default.nix
index 4affea99510b..02ef06044457 100644
--- a/pkgs/development/ocaml-modules/mdx/default.nix
+++ b/pkgs/development/ocaml-modules/mdx/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, buildDunePackage, ocaml
+{ lib, fetchurl, buildDunePackage, ocaml, findlib
, alcotest
, astring, cppo, fmt, logs, ocaml-version, odoc-parser, lwt, re, csexp
, gitUpdater
@@ -17,8 +17,8 @@ buildDunePackage rec {
};
nativeBuildInputs = [ cppo ];
- propagatedBuildInputs = [ astring fmt logs csexp ocaml-version odoc-parser re ];
- nativeCheckInputs = [ alcotest lwt ];
+ propagatedBuildInputs = [ astring fmt logs csexp ocaml-version odoc-parser re findlib ];
+ checkInputs = [ alcotest lwt ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/mec/default.nix b/pkgs/development/ocaml-modules/mec/default.nix
index 312169acb6cf..ddb610f5570b 100644
--- a/pkgs/development/ocaml-modules/mec/default.nix
+++ b/pkgs/development/ocaml-modules/mec/default.nix
@@ -1,6 +1,7 @@
{ lib, fetchzip, buildDunePackage, ocaml
, zarith, eqaf, bigarray-compat, hex, ff-sig, ff
-, alcotest, bisect_ppx }:
+, alcotest, bisect_ppx
+}:
buildDunePackage rec {
pname = "mec";
@@ -27,7 +28,7 @@ buildDunePackage rec {
zarith
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
bisect_ppx
];
diff --git a/pkgs/development/ocaml-modules/merlin-extend/default.nix b/pkgs/development/ocaml-modules/merlin-extend/default.nix
index b295c0eda0f7..a8ccd2cf4a01 100644
--- a/pkgs/development/ocaml-modules/merlin-extend/default.nix
+++ b/pkgs/development/ocaml-modules/merlin-extend/default.nix
@@ -11,8 +11,6 @@ buildDunePackage rec {
sha256 = "0hvc4mz92x3rl2dxwrhvhzwl4gilnyvvwcqgr45vmdpyjyp3dwn2";
};
- strictDeps = true;
-
nativeBuildInputs = [ cppo ];
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/metrics/default.nix b/pkgs/development/ocaml-modules/metrics/default.nix
index 837bf6c2dc96..5fcf7cf51108 100644
--- a/pkgs/development/ocaml-modules/metrics/default.nix
+++ b/pkgs/development/ocaml-modules/metrics/default.nix
@@ -13,7 +13,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/metrics/unix.nix b/pkgs/development/ocaml-modules/metrics/unix.nix
index ef32ed3159fd..5df5e14982cc 100644
--- a/pkgs/development/ocaml-modules/metrics/unix.nix
+++ b/pkgs/development/ocaml-modules/metrics/unix.nix
@@ -13,7 +13,8 @@ buildDunePackage rec {
propagatedBuildInputs = [ gnuplot lwt metrics mtime uuidm ];
- nativeCheckInputs = [ metrics-lwt ];
+ nativeCheckInputs = [ gnuplot ];
+ checkInputs = [ metrics-lwt ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/mimic/default.nix b/pkgs/development/ocaml-modules/mimic/default.nix
index 1522b2def384..097ecb313534 100644
--- a/pkgs/development/ocaml-modules/mimic/default.nix
+++ b/pkgs/development/ocaml-modules/mimic/default.nix
@@ -23,7 +23,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
alcotest-lwt
bigstringaf
diff --git a/pkgs/development/ocaml-modules/mirage-block-unix/default.nix b/pkgs/development/ocaml-modules/mirage-block-unix/default.nix
index 940e9a779104..0d0851536b38 100644
--- a/pkgs/development/ocaml-modules/mirage-block-unix/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-block-unix/default.nix
@@ -1,5 +1,6 @@
{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, logs
-, mirage-block, ounit2, rresult, uri }:
+, mirage-block, ounit2, rresult, uri
+}:
buildDunePackage rec {
pname = "mirage-block-unix";
@@ -16,7 +17,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ cstruct-lwt logs mirage-block rresult uri ];
doCheck = true;
- nativeCheckInputs = [ diet ounit2 ];
+ checkInputs = [ diet ounit2 ];
meta = with lib; {
description = "MirageOS disk block driver for Unix";
diff --git a/pkgs/development/ocaml-modules/mirage-channel/default.nix b/pkgs/development/ocaml-modules/mirage-channel/default.nix
index 7461ef91daee..bdafeb430549 100644
--- a/pkgs/development/ocaml-modules/mirage-channel/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-channel/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ cstruct logs lwt mirage-flow ];
doCheck = true;
- nativeCheckInputs = [ alcotest mirage-flow-combinators ];
+ checkInputs = [ alcotest mirage-flow-combinators ];
meta = {
description = "Buffered channels for MirageOS FLOW types";
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/default.nix b/pkgs/development/ocaml-modules/mirage-crypto/default.nix
index 5bbf5d0fcb31..d5f110948dc9 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
};
doCheck = true;
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
@@ -25,8 +25,6 @@ buildDunePackage rec {
ocaml-freestanding
];
- strictDeps = !doCheck;
-
meta = with lib; {
homepage = "https://github.com/mirage/mirage-crypto";
description = "Simple symmetric cryptography for the modern age";
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/ec.nix b/pkgs/development/ocaml-modules/mirage-crypto/ec.nix
index 5a9de788a5d3..3afe582413f5 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/ec.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/ec.nix
@@ -26,7 +26,6 @@ buildDunePackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [
- ocaml
dune-configurator
];
propagatedBuildInputs = [
@@ -37,10 +36,10 @@ buildDunePackage rec {
ocaml-freestanding
];
- strictDeps = !doCheck;
+ strictDeps = true;
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
hex
alcotest
asn1-combinators
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/pk.nix b/pkgs/development/ocaml-modules/mirage-crypto/pk.nix
index d10e51ea0e72..b79f49c64bd4 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/pk.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/pk.nix
@@ -10,10 +10,8 @@ buildDunePackage rec {
propagatedBuildInputs = [ cstruct mirage-crypto mirage-crypto-rng
zarith eqaf sexplib0 ];
- strictDeps = !doCheck;
-
doCheck = true;
- nativeCheckInputs = [ ounit2 randomconv ];
+ checkInputs = [ ounit2 randomconv ];
meta = mirage-crypto.meta // {
description = "Simple public-key cryptography for the modern age";
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
index f9a244de36eb..c3703a5a60ab 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
@@ -9,13 +9,11 @@ buildDunePackage rec {
inherit (mirage-crypto-rng) version src;
doCheck = true;
- nativeCheckInputs = [ mirage-unix mirage-clock-unix mirage-time-unix ];
+ checkInputs = [ mirage-unix mirage-clock-unix mirage-time-unix ];
propagatedBuildInputs = [ duration cstruct mirage-crypto-rng mirage-runtime
mirage-time mirage-clock logs lwt ];
- strictDeps = !doCheck;
-
meta = mirage-crypto-rng.meta // {
description = "Entropy collection for a cryptographically secure PRNG";
};
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng.nix
index eb7e0cf0e488..044b8ed27b82 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/rng.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/rng.nix
@@ -7,12 +7,12 @@ buildDunePackage rec {
inherit (mirage-crypto) version src;
doCheck = true;
- nativeCheckInputs = [ ounit2 randomconv ];
+ checkInputs = [ ounit2 randomconv ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt ];
- strictDeps = !doCheck;
+ strictDeps = true;
meta = mirage-crypto.meta // {
description = "A cryptographically secure PRNG";
diff --git a/pkgs/development/ocaml-modules/mirage-flow/unix.nix b/pkgs/development/ocaml-modules/mirage-flow/unix.nix
index 6a317ca34c93..023896447db1 100644
--- a/pkgs/development/ocaml-modules/mirage-flow/unix.nix
+++ b/pkgs/development/ocaml-modules/mirage-flow/unix.nix
@@ -1,5 +1,6 @@
{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
-, alcotest, mirage-flow-combinators }:
+, alcotest, mirage-flow-combinators
+}:
buildDunePackage {
pname = "mirage-flow-unix";
@@ -14,7 +15,7 @@ buildDunePackage {
propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
doCheck = true;
- nativeCheckInputs = [ alcotest mirage-flow-combinators ];
+ checkInputs = [ alcotest mirage-flow-combinators ];
meta = mirage-flow.meta // {
description = "Flow implementations and combinators for MirageOS on Unix";
diff --git a/pkgs/development/ocaml-modules/mirage-kv/default.nix b/pkgs/development/ocaml-modules/mirage-kv/default.nix
index 771efcef2b7c..20d83e166418 100644
--- a/pkgs/development/ocaml-modules/mirage-kv/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-kv/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt mirage-device ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "MirageOS signatures for key/value devices";
diff --git a/pkgs/development/ocaml-modules/mirage-logs/default.nix b/pkgs/development/ocaml-modules/mirage-logs/default.nix
index 133d49ddf9d9..7aabd51b819a 100644
--- a/pkgs/development/ocaml-modules/mirage-logs/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-logs/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ logs lwt mirage-clock mirage-profile ptime stdlib-shims ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "A reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps";
diff --git a/pkgs/development/ocaml-modules/mirage-nat/default.nix b/pkgs/development/ocaml-modules/mirage-nat/default.nix
index 0fdc6d4fa95a..fea1e712abd2 100644
--- a/pkgs/development/ocaml-modules/mirage-nat/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-nat/default.nix
@@ -27,7 +27,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
mirage-clock-unix
];
diff --git a/pkgs/development/ocaml-modules/mirage/default.nix b/pkgs/development/ocaml-modules/mirage/default.nix
index 76f11cfd9055..410475b6b5c0 100644
--- a/pkgs/development/ocaml-modules/mirage/default.nix
+++ b/pkgs/development/ocaml-modules/mirage/default.nix
@@ -23,7 +23,7 @@ buildDunePackage rec {
# Tests need opam-monorepo
doCheck = false;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/mirage/runtime.nix b/pkgs/development/ocaml-modules/mirage/runtime.nix
index 25062bcb0df1..8182b7b5ef53 100644
--- a/pkgs/development/ocaml-modules/mirage/runtime.nix
+++ b/pkgs/development/ocaml-modules/mirage/runtime.nix
@@ -10,7 +10,7 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [ ipaddr functoria-runtime fmt logs lwt ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/mrmime/default.nix b/pkgs/development/ocaml-modules/mrmime/default.nix
index 54f137aecd8f..a2d118765616 100644
--- a/pkgs/development/ocaml-modules/mrmime/default.nix
+++ b/pkgs/development/ocaml-modules/mrmime/default.nix
@@ -62,7 +62,7 @@ buildDunePackage rec {
mirage-crypto-rng
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
jsonm
];
diff --git a/pkgs/development/ocaml-modules/multipart-form-data/default.nix b/pkgs/development/ocaml-modules/multipart-form-data/default.nix
index 8c9149c4af5a..4d44f3b97763 100644
--- a/pkgs/development/ocaml-modules/multipart-form-data/default.nix
+++ b/pkgs/development/ocaml-modules/multipart-form-data/default.nix
@@ -13,13 +13,13 @@ buildDunePackage rec {
hash = "sha256-3MYJDvVbPIv/JDiB9nKcLRFC5Qa0afyEfz7hk8MWRII=";
};
- nativeBuildInputs = [ lwt_ppx ];
+ buildInputs = [ lwt_ppx ];
propagatedBuildInputs = [ lwt stringext ];
duneVersion = "3";
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "Parser for multipart/form-data (RFC2388)";
diff --git a/pkgs/development/ocaml-modules/mustache/default.nix b/pkgs/development/ocaml-modules/mustache/default.nix
index 6fcf7757f2f9..5d4b39b21aa8 100644
--- a/pkgs/development/ocaml-modules/mustache/default.nix
+++ b/pkgs/development/ocaml-modules/mustache/default.nix
@@ -11,11 +11,12 @@ buildDunePackage rec {
sha256 = "19v8rk8d8lkfm2rmhdawfgadji6wa267ir5dprh4w9l1sfj8a1py";
};
- buildInputs = [ ezjsonm menhir ];
+ nativeBuildInputs = [ menhir ];
+ buildInputs = [ ezjsonm ];
propagatedBuildInputs = [ menhirLib ];
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = {
description = "Mustache logic-less templates in OCaml";
diff --git a/pkgs/development/ocaml-modules/netchannel/default.nix b/pkgs/development/ocaml-modules/netchannel/default.nix
index 61e5c70edd44..ce859d366b03 100644
--- a/pkgs/development/ocaml-modules/netchannel/default.nix
+++ b/pkgs/development/ocaml-modules/netchannel/default.nix
@@ -28,7 +28,7 @@ buildDunePackage rec {
sha256 = "sha256-kYsAf6ntwWKUp26dMcp5BScdUOaGpM46050jVZe6gfs=";
};
- nativeBuildInputs = [
+ buildInputs = [
ppx_cstruct
];
diff --git a/pkgs/development/ocaml-modules/ocaml-cairo/default.nix b/pkgs/development/ocaml-modules/ocaml-cairo/default.nix
index f0e70699ad88..2c2ffecf3dba 100644
--- a/pkgs/development/ocaml-modules/ocaml-cairo/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-cairo/default.nix
@@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
patches = [ ./META.patch ];
+ strictDeps = true;
+
nativeBuildInputs = [ pkg-config unzip ocaml automake gnum4 autoconf findlib ];
buildInputs = [ freetype lablgtk cairo gdk-pixbuf gtk2 pango ];
diff --git a/pkgs/development/ocaml-modules/ocaml-freestanding/default.nix b/pkgs/development/ocaml-modules/ocaml-freestanding/default.nix
index 942d69e59194..3588495884f8 100644
--- a/pkgs/development/ocaml-modules/ocaml-freestanding/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-freestanding/default.nix
@@ -42,6 +42,8 @@ stdenv.mkDerivation rec {
./configurable-binding.patch
];
+ strictDeps = true;
+
nativeBuildInputs = [
ocaml
pkg-config
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix b/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
index f99a84cf6102..e6a778194654 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
@@ -7,9 +7,9 @@ buildDunePackage {
propagatedBuildInputs = [ camomile ocaml_gettext ];
doCheck = true;
- nativeCheckInputs = [ ounit fileutils ];
+ checkInputs = [ ounit fileutils ];
- meta = (builtins.removeAttrs ocaml_gettext.meta [ "mainProgram" ]) // {
+ meta = (builtins.removeAttrs ocaml_gettext.meta [ "mainProgram" ]) // {
description = "Internationalization library using camomile (i18n)";
};
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
index bd887b4b9f56..c65f50646974 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
@@ -11,14 +11,14 @@ buildDunePackage rec {
sha256 = "19ynsldb21r539fiwz1f43apsdnx7hj2a2d9qr9wg2hva9y2qrwb";
};
- buildInputs = [ cppo ];
+ nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [ gettext fileutils ];
# Tests for version 0.4.2 are not compatible with OUnit 2.2.6
doCheck = false;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
dontStrip = true;
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
index d8999dcbae58..75e739959c3c 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
@@ -12,7 +12,7 @@ buildDunePackage rec {
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = builtins.removeAttrs ocaml_gettext.meta [ "mainProgram" ];
}
diff --git a/pkgs/development/ocaml-modules/ocaml-vdom/default.nix b/pkgs/development/ocaml-modules/ocaml-vdom/default.nix
index 6ae36252aa08..72c1cb148c20 100644
--- a/pkgs/development/ocaml-modules/ocaml-vdom/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-vdom/default.nix
@@ -11,6 +11,10 @@ buildDunePackage rec {
sha256 = "sha256-FVR0WubW9VJBGVtVaXdJ+O/ghq0w5+BuItFWXkuVYL8=";
};
+ nativeBuildInputs = [
+ gen_js_api
+ ];
+
buildInputs = [
gen_js_api
];
diff --git a/pkgs/development/ocaml-modules/ocaml-version/default.nix b/pkgs/development/ocaml-modules/ocaml-version/default.nix
index aeb9c9dc699c..28f12046eaa3 100644
--- a/pkgs/development/ocaml-modules/ocaml-version/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-version/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, buildDunePackage }:
+{ lib, fetchurl, buildDunePackage, alcotest }:
buildDunePackage rec {
pname = "ocaml-version";
@@ -9,6 +9,10 @@ buildDunePackage rec {
sha256 = "sha256-2MG+tejY67dxC19DTOZqPsi3UrHk1rqHxP4nRSvbiiU=";
};
+ checkInputs = [ alcotest ];
+
+ doCheck = true;
+
minimumOCamlVersion = "4.07";
useDune2 = true;
diff --git a/pkgs/development/ocaml-modules/ocamlfuse/default.nix b/pkgs/development/ocaml-modules/ocamlfuse/default.nix
index 13ac62f64514..1efcbf382dbf 100644
--- a/pkgs/development/ocaml-modules/ocamlfuse/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlfuse/default.nix
@@ -11,9 +11,6 @@ buildDunePackage rec {
sha256 = "6nmPXZx38hBGlg+gV9nnlRpPfeSAqDj4zBPcjUNvTRo=";
};
- # This currently fails with dune
- strictDeps = false;
-
nativeBuildInputs = [ camlidl ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ camlidl fuse ];
diff --git a/pkgs/development/ocaml-modules/ocamlnat/default.nix b/pkgs/development/ocaml-modules/ocamlnat/default.nix
index 0be4e7806630..850c29c4dc02 100644
--- a/pkgs/development/ocaml-modules/ocamlnat/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlnat/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ocaml findlib ];
- buildInputs = [ ounit];
+ checkInputs = [ ounit ];
strictDeps = true;
diff --git a/pkgs/development/ocaml-modules/ocamlsdl/default.nix b/pkgs/development/ocaml-modules/ocamlsdl/default.nix
index 3482aa37e750..2a33d8b17ccc 100644
--- a/pkgs/development/ocaml-modules/ocamlsdl/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlsdl/default.nix
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
};
+ strictDeps = true;
+
nativeBuildInputs = [ pkg-config ocaml findlib ];
buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf SDL_gfx lablgl ];
diff --git a/pkgs/development/ocaml-modules/ocsigen-server/default.nix b/pkgs/development/ocaml-modules/ocsigen-server/default.nix
index 3ee300a5a964..f4225c917dbd 100644
--- a/pkgs/development/ocaml-modules/ocsigen-server/default.nix
+++ b/pkgs/development/ocaml-modules/ocsigen-server/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildDunePackage, fetchFromGitHub, which, ocaml, lwt_react, ssl, lwt_ssl
+{ lib, buildDunePackage, fetchFromGitHub, which, ocaml, lwt_react, ssl, lwt_ssl, findlib
, bigstringaf, lwt, cstruct, mirage-crypto, zarith, mirage-crypto-ec, ptime, mirage-crypto-rng, mtime, ca-certs
, cohttp, cohttp-lwt-unix, hmap
, lwt_log, ocaml_pcre, cryptokit, xml-light, ipaddr
@@ -31,7 +31,7 @@ buildDunePackage rec {
};
nativeBuildInputs = [ makeWrapper which ];
- buildInputs = [ lwt_react camlzip ];
+ buildInputs = [ lwt_react camlzip findlib ];
propagatedBuildInputs = [ cohttp cohttp-lwt-unix cryptokit hmap ipaddr lwt_log lwt_ssl
ocaml_pcre xml-light
diff --git a/pkgs/development/ocaml-modules/odate/default.nix b/pkgs/development/ocaml-modules/odate/default.nix
index 24d2c04c6ca6..a16fbc578d33 100644
--- a/pkgs/development/ocaml-modules/odate/default.nix
+++ b/pkgs/development/ocaml-modules/odate/default.nix
@@ -15,8 +15,6 @@ buildDunePackage rec {
sha256 = "1dk33lr0g2jnia2gqsm6nnc7nf256qgkm3v30w477gm6y2ppfm3h";
};
- strictDeps = true;
-
nativeBuildInputs = [ menhir ];
# Ensure compatibility of v0.6 with menhir ≥ 20220210
diff --git a/pkgs/development/ocaml-modules/odoc/default.nix b/pkgs/development/ocaml-modules/odoc/default.nix
index 34f3e84304b7..924f643cc88d 100644
--- a/pkgs/development/ocaml-modules/odoc/default.nix
+++ b/pkgs/development/ocaml-modules/odoc/default.nix
@@ -16,9 +16,11 @@ buildDunePackage rec {
# dune 3 is required for tests to pass
duneVersion = if doCheck then "3" else "2";
- buildInputs = [ astring cmdliner cppo fpath result tyxml odoc-parser fmt ];
+ nativeBuildInputs = [ cppo ];
+ buildInputs = [ astring cmdliner fpath result tyxml odoc-parser fmt ];
- nativeCheckInputs = [ markup yojson sexplib0 jq ppx_expect bash ];
+ nativeCheckInputs = [ bash jq ];
+ checkInputs = [ markup yojson sexplib0 jq ppx_expect ];
doCheck = lib.versionAtLeast ocaml.version "4.08"
&& lib.versionOlder yojson.version "2.0";
diff --git a/pkgs/development/ocaml-modules/opium/default.nix b/pkgs/development/ocaml-modules/opium/default.nix
index 26632f37d206..b98d892696ec 100644
--- a/pkgs/development/ocaml-modules/opium/default.nix
+++ b/pkgs/development/ocaml-modules/opium/default.nix
@@ -49,7 +49,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest-lwt
];
diff --git a/pkgs/development/ocaml-modules/oseq/default.nix b/pkgs/development/ocaml-modules/oseq/default.nix
index f680c3794caf..cbe02de2ef11 100644
--- a/pkgs/development/ocaml-modules/oseq/default.nix
+++ b/pkgs/development/ocaml-modules/oseq/default.nix
@@ -19,7 +19,7 @@ buildDunePackage rec {
duneVersion = "3";
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
containers
qcheck
];
diff --git a/pkgs/development/ocaml-modules/otoml/default.nix b/pkgs/development/ocaml-modules/otoml/default.nix
index 3f06a098d0e1..4a2e605f4cef 100644
--- a/pkgs/development/ocaml-modules/otoml/default.nix
+++ b/pkgs/development/ocaml-modules/otoml/default.nix
@@ -19,8 +19,6 @@ buildDunePackage rec {
sha256 = "sha256-Xd3fHBN1f+tvgRFCxD/Gz8/lIvezknz7Zy3EtdqoTEM=";
};
- strictDeps = true;
-
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ menhirLib uutf ];
diff --git a/pkgs/development/ocaml-modules/owl/default.nix b/pkgs/development/ocaml-modules/owl/default.nix
index b5f707446a58..6e77b6312fa4 100644
--- a/pkgs/development/ocaml-modules/owl/default.nix
+++ b/pkgs/development/ocaml-modules/owl/default.nix
@@ -16,11 +16,14 @@ buildDunePackage rec {
inherit (owl-base) version src meta useDune2;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
buildInputs = [ dune-configurator stdio ];
propagatedBuildInputs = [
- eigen openblasCompat owl-base npy
+ eigen
+ openblasCompat
+ owl-base
+ npy
];
- doCheck = !stdenv.isDarwin; # https://github.com/owlbarn/owl/issues/462
+ doCheck = !stdenv.isDarwin; # https://github.com/owlbarn/owl/issues/462
}
diff --git a/pkgs/development/ocaml-modules/paf/cohttp.nix b/pkgs/development/ocaml-modules/paf/cohttp.nix
index 97396769fd05..2f2891493061 100644
--- a/pkgs/development/ocaml-modules/paf/cohttp.nix
+++ b/pkgs/development/ocaml-modules/paf/cohttp.nix
@@ -22,7 +22,7 @@ buildDunePackage {
inherit (paf)
version
src
- ;
+ ;
duneVersion = "3";
@@ -35,7 +35,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest-lwt
fmt
logs
diff --git a/pkgs/development/ocaml-modules/paf/default.nix b/pkgs/development/ocaml-modules/paf/default.nix
index d172e73e13b2..e75efeb2ade7 100644
--- a/pkgs/development/ocaml-modules/paf/default.nix
+++ b/pkgs/development/ocaml-modules/paf/default.nix
@@ -50,7 +50,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
lwt
logs
fmt
diff --git a/pkgs/development/ocaml-modules/parse-argv/default.nix b/pkgs/development/ocaml-modules/parse-argv/default.nix
index 79a6a541a556..4bc409245eed 100644
--- a/pkgs/development/ocaml-modules/parse-argv/default.nix
+++ b/pkgs/development/ocaml-modules/parse-argv/default.nix
@@ -19,7 +19,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ astring ];
doCheck = lib.versionAtLeast ocaml.version "4.04";
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = {
description = "Process strings into sets of command-line arguments";
diff --git a/pkgs/development/ocaml-modules/pbkdf/default.nix b/pkgs/development/ocaml-modules/pbkdf/default.nix
index 5dedd200a825..d6b9bdb7e758 100644
--- a/pkgs/development/ocaml-modules/pbkdf/default.nix
+++ b/pkgs/development/ocaml-modules/pbkdf/default.nix
@@ -19,7 +19,7 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [ cstruct mirage-crypto ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = true;
meta = {
diff --git a/pkgs/development/ocaml-modules/pcap-format/default.nix b/pkgs/development/ocaml-modules/pcap-format/default.nix
index aa65deff7412..ffd183787793 100644
--- a/pkgs/development/ocaml-modules/pcap-format/default.nix
+++ b/pkgs/development/ocaml-modules/pcap-format/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
sha256 = "14c5rpgglyz41jic0fg0xa22d2w1syb86kva22y9fi7aqj9vm31f";
};
- nativeBuildInputs = [
+ buildInputs = [
ppx_tools
ppx_cstruct
];
@@ -28,7 +28,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
ounit
mmap
];
diff --git a/pkgs/development/ocaml-modules/pecu/default.nix b/pkgs/development/ocaml-modules/pecu/default.nix
index cc2827ad533d..22c1913635f8 100644
--- a/pkgs/development/ocaml-modules/pecu/default.nix
+++ b/pkgs/development/ocaml-modules/pecu/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
# crowbar availability
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ fmt alcotest crowbar astring ];
+ checkInputs = [ fmt alcotest crowbar astring ];
meta = with lib; {
description = "Encoder/Decoder of Quoted-Printable (RFC2045 & RFC2047)";
diff --git a/pkgs/development/ocaml-modules/phylogenetics/default.nix b/pkgs/development/ocaml-modules/phylogenetics/default.nix
index c8fbeb103aa4..e67429a6a45f 100644
--- a/pkgs/development/ocaml-modules/phylogenetics/default.nix
+++ b/pkgs/development/ocaml-modules/phylogenetics/default.nix
@@ -27,8 +27,9 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
- nativeCheckInputs = [ alcotest bppsuite ];
- buildInputs = [ menhir ];
+ nativeCheckInputs = [ bppsuite ];
+ checkInputs = [ alcotest ];
+ nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [
angstrom-unix
biocaml
diff --git a/pkgs/development/ocaml-modules/piqi-ocaml/default.nix b/pkgs/development/ocaml-modules/piqi-ocaml/default.nix
index 653f86c03ac1..39ae5a86c598 100644
--- a/pkgs/development/ocaml-modules/piqi-ocaml/default.nix
+++ b/pkgs/development/ocaml-modules/piqi-ocaml/default.nix
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ piqi stdlib-shims ];
- nativeCheckInputs = [ num ];
+ checkInputs = [ num ];
strictDeps = true;
diff --git a/pkgs/development/ocaml-modules/postgresql/default.nix b/pkgs/development/ocaml-modules/postgresql/default.nix
index a63876ec5bb1..d87f6b39efb8 100644
--- a/pkgs/development/ocaml-modules/postgresql/default.nix
+++ b/pkgs/development/ocaml-modules/postgresql/default.nix
@@ -15,7 +15,8 @@ buildDunePackage rec {
sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
};
- buildInputs = [ dune-configurator postgresql ];
+ nativeBuildInputs = [ postgresql ];
+ buildInputs = [ dune-configurator ];
meta = {
description = "Bindings to the PostgreSQL library";
diff --git a/pkgs/development/ocaml-modules/pp/default.nix b/pkgs/development/ocaml-modules/pp/default.nix
index c53b5946556c..7602d7024524 100644
--- a/pkgs/development/ocaml-modules/pp/default.nix
+++ b/pkgs/development/ocaml-modules/pp/default.nix
@@ -16,7 +16,7 @@ buildDunePackage rec {
useDune2 = true;
minimalOCamlVersion = "4.08";
- nativeCheckInputs = [ ppx_expect ];
+ checkInputs = [ ppx_expect ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/ppx_blob/default.nix b/pkgs/development/ocaml-modules/ppx_blob/default.nix
index 9bf509801bbc..6248e4e6a945 100644
--- a/pkgs/development/ocaml-modules/ppx_blob/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_blob/default.nix
@@ -11,7 +11,7 @@ buildDunePackage rec {
sha256 = "00haz1cmplk3j9ysh6j656zrldy60585fmlndmfhpd5332mxrfdw";
};
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
propagatedBuildInputs = [ ppxlib ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/ppx_cstubs/default.nix b/pkgs/development/ocaml-modules/ppx_cstubs/default.nix
index c58004b9adca..88f187cc706a 100644
--- a/pkgs/development/ocaml-modules/ppx_cstubs/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_cstubs/default.nix
@@ -42,8 +42,6 @@ buildDunePackage rec {
ctypes
];
- strictDeps = true;
-
meta = with lib; {
homepage = "https://github.com/fdopen/ppx_cstubs";
changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
diff --git a/pkgs/development/ocaml-modules/ppx_deriving/default.nix b/pkgs/development/ocaml-modules/ppx_deriving/default.nix
index dba8ffc743dd..e1c31c3ec28e 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving/default.nix
@@ -39,8 +39,7 @@ buildDunePackage rec {
inherit (params) sha256;
};
- # This currently fails with dune
- strictDeps = false;
+ strictDeps = true;
nativeBuildInputs = [ cppo ];
buildInputs = [ ppxlib ];
@@ -53,7 +52,7 @@ buildDunePackage rec {
];
doCheck = lib.versionOlder ocaml.version "5.0";
- nativeCheckInputs = [
+ checkInputs = [
(if lib.versionAtLeast version "5.2" then ounit2 else ounit)
];
diff --git a/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix
index 1b48c90e1d28..5bf70a056507 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix
@@ -38,7 +38,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
];
diff --git a/pkgs/development/ocaml-modules/ppx_deriving_rpc/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_rpc/default.nix
index ff7fc30e986c..b7d1986c30d4 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving_rpc/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving_rpc/default.nix
@@ -9,7 +9,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ ppxlib rpclib ppx_deriving ];
- nativeCheckInputs = [ alcotest yojson ];
+ checkInputs = [ alcotest yojson ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix
index 98872feb14f8..c6a0f6d0af65 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix
@@ -16,7 +16,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ ppxlib ppx_deriving yaml ];
doCheck = true;
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
meta = {
description = "A YAML codec generator for OCaml";
diff --git a/pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix
index 87784177ed44..4fef3c0619f3 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix
@@ -28,7 +28,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ ppxlib ppx_deriving yojson ];
doCheck = true;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = {
description = "A Yojson codec generator for OCaml >= 4.04";
diff --git a/pkgs/development/ocaml-modules/ppx_import/default.nix b/pkgs/development/ocaml-modules/ppx_import/default.nix
index dca50972e3db..120ce1893b27 100644
--- a/pkgs/development/ocaml-modules/ppx_import/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_import/default.nix
@@ -25,8 +25,6 @@ buildDunePackage rec {
pname = "ppx_import";
inherit version;
- useDune2 = true;
-
minimalOCamlVersion = "4.05";
src = fetchurl {
@@ -38,7 +36,7 @@ buildDunePackage rec {
ppxlib
];
- nativeCheckInputs = [
+ checkInputs = [
ounit
ppx_deriving
ppx_sexp_conv
diff --git a/pkgs/development/ocaml-modules/ppx_tools/default.nix b/pkgs/development/ocaml-modules/ppx_tools/default.nix
index d3af0ea154ea..2d5f73be42b8 100644
--- a/pkgs/development/ocaml-modules/ppx_tools/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_tools/default.nix
@@ -58,8 +58,6 @@ then
inherit pname src meta;
inherit (param) version buildInputs nativeBuildInputs;
duneVersion = "3";
-
- strictDeps = true;
}
else
stdenv.mkDerivation {
diff --git a/pkgs/development/ocaml-modules/pratter/default.nix b/pkgs/development/ocaml-modules/pratter/default.nix
index 339eac87beae..a44e815092ca 100644
--- a/pkgs/development/ocaml-modules/pratter/default.nix
+++ b/pkgs/development/ocaml-modules/pratter/default.nix
@@ -22,7 +22,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ camlp-streams ];
- nativeCheckInputs = [ alcotest qcheck qcheck-alcotest ];
+ checkInputs = [ alcotest qcheck qcheck-alcotest ];
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/prettym/default.nix b/pkgs/development/ocaml-modules/prettym/default.nix
index 7cdbc7b05bbe..d19233cf13c9 100644
--- a/pkgs/development/ocaml-modules/prettym/default.nix
+++ b/pkgs/development/ocaml-modules/prettym/default.nix
@@ -31,7 +31,7 @@ buildDunePackage rec {
ke
];
- nativeCheckInputs = [
+ checkInputs = [
ptime
alcotest
jsonm
diff --git a/pkgs/development/ocaml-modules/progress/default.nix b/pkgs/development/ocaml-modules/progress/default.nix
index 35c7ee9eb43c..4c00ff98465a 100644
--- a/pkgs/development/ocaml-modules/progress/default.nix
+++ b/pkgs/development/ocaml-modules/progress/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ fmt logs mtime optint terminal vector ];
doCheck = true;
- nativeCheckInputs = [ alcotest astring ];
+ checkInputs = [ alcotest astring ];
meta = with lib; {
description = "Progress bar library for OCaml";
diff --git a/pkgs/development/ocaml-modules/psmt2-frontend/default.nix b/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
index 1cb14f75faa8..ef88bdcdab7b 100644
--- a/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
+++ b/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
@@ -13,8 +13,6 @@ buildDunePackage rec {
minimalOCamlVersion = "4.03";
- strictDeps = true;
-
nativeBuildInputs = [ menhir ];
meta = {
diff --git a/pkgs/development/ocaml-modules/psq/default.nix b/pkgs/development/ocaml-modules/psq/default.nix
index 75b234472849..ea9a0615b414 100644
--- a/pkgs/development/ocaml-modules/psq/default.nix
+++ b/pkgs/development/ocaml-modules/psq/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ seq ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ qcheck-alcotest ];
+ checkInputs = [ qcheck-alcotest ];
meta = {
description = "Functional Priority Search Queues for OCaml";
diff --git a/pkgs/development/ocaml-modules/ptmap/default.nix b/pkgs/development/ocaml-modules/ptmap/default.nix
index a3c0eb55f968..edc9e1c6dcbd 100644
--- a/pkgs/development/ocaml-modules/ptmap/default.nix
+++ b/pkgs/development/ocaml-modules/ptmap/default.nix
@@ -14,8 +14,6 @@ buildDunePackage rec {
sha256 = "1apk61fc1y1g7x3m3c91fnskvxp6i0vk5nxwvipj56k7x2pzilgb";
};
- strictDeps = true;
-
buildInputs = [ stdlib-shims ];
propagatedBuildInputs = [ seq ];
diff --git a/pkgs/development/ocaml-modules/reactivedata/default.nix b/pkgs/development/ocaml-modules/reactivedata/default.nix
index 3aafd9807a01..49b1357f5491 100644
--- a/pkgs/development/ocaml-modules/reactivedata/default.nix
+++ b/pkgs/development/ocaml-modules/reactivedata/default.nix
@@ -15,8 +15,6 @@ buildDunePackage rec {
propagatedBuildInputs = [ react ];
- strictDeps = true;
-
meta = with lib; {
description = "An OCaml module for functional reactive programming (FRP) based on React";
homepage = "https://github.com/ocsigen/reactiveData";
diff --git a/pkgs/development/ocaml-modules/reason-native/refmterr.nix b/pkgs/development/ocaml-modules/reason-native/refmterr.nix
index b4d6708467f0..3e517591b9e6 100644
--- a/pkgs/development/ocaml-modules/reason-native/refmterr.nix
+++ b/pkgs/development/ocaml-modules/reason-native/refmterr.nix
@@ -4,6 +4,7 @@
pname = "refmterr";
nativeBuildInputs = [
+ atdgen
reason
];
diff --git a/pkgs/development/ocaml-modules/repr/ppx.nix b/pkgs/development/ocaml-modules/repr/ppx.nix
index eb96298f16ae..1eb762563621 100644
--- a/pkgs/development/ocaml-modules/repr/ppx.nix
+++ b/pkgs/development/ocaml-modules/repr/ppx.nix
@@ -12,7 +12,7 @@ buildDunePackage {
];
doCheck = false; # tests fail with ppxlib >= 0.23.0
- nativeCheckInputs = [
+ checkInputs = [
alcotest
hex
];
diff --git a/pkgs/development/ocaml-modules/rfc7748/default.nix b/pkgs/development/ocaml-modules/rfc7748/default.nix
index 432636bcbb5f..40356ec9aa5f 100644
--- a/pkgs/development/ocaml-modules/rfc7748/default.nix
+++ b/pkgs/development/ocaml-modules/rfc7748/default.nix
@@ -26,7 +26,7 @@ buildDunePackage rec {
# the tests fail for 4.05
doCheck = lib.versionAtLeast ocaml.version "4.06";
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
meta = {
homepage = "https://github.com/burgerdev/ocaml-rfc7748";
diff --git a/pkgs/development/ocaml-modules/rpclib/default.nix b/pkgs/development/ocaml-modules/rpclib/default.nix
index 34f62852a81a..73d899eafa93 100644
--- a/pkgs/development/ocaml-modules/rpclib/default.nix
+++ b/pkgs/development/ocaml-modules/rpclib/default.nix
@@ -16,7 +16,7 @@ buildDunePackage rec {
buildInputs = [ cmdliner yojson ];
propagatedBuildInputs = [ base64 rresult xmlm ];
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
diff --git a/pkgs/development/ocaml-modules/rpclib/lwt.nix b/pkgs/development/ocaml-modules/rpclib/lwt.nix
index 69b2bf749908..1f97d7ff52d2 100644
--- a/pkgs/development/ocaml-modules/rpclib/lwt.nix
+++ b/pkgs/development/ocaml-modules/rpclib/lwt.nix
@@ -1,6 +1,10 @@
-{ lib, buildDunePackage, rpclib
+{ lib
+, buildDunePackage
+, rpclib
, lwt
-, alcotest-lwt, ppx_deriving_rpc, yojson
+, alcotest-lwt
+, ppx_deriving_rpc
+, yojson
}:
buildDunePackage {
@@ -9,7 +13,7 @@ buildDunePackage {
propagatedBuildInputs = [ lwt rpclib ];
- nativeCheckInputs = [ alcotest-lwt ppx_deriving_rpc yojson ];
+ checkInputs = [ alcotest-lwt ppx_deriving_rpc yojson ];
doCheck = true;
meta = rpclib.meta // {
diff --git a/pkgs/development/ocaml-modules/secp256k1-internal/default.nix b/pkgs/development/ocaml-modules/secp256k1-internal/default.nix
index f08f77c5282f..4a9a761ab30c 100644
--- a/pkgs/development/ocaml-modules/secp256k1-internal/default.nix
+++ b/pkgs/development/ocaml-modules/secp256k1-internal/default.nix
@@ -31,7 +31,7 @@ buildDunePackage rec {
dune-configurator
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
hex
];
diff --git a/pkgs/development/ocaml-modules/sha/default.nix b/pkgs/development/ocaml-modules/sha/default.nix
index d809678838ab..4d400d32844a 100644
--- a/pkgs/development/ocaml-modules/sha/default.nix
+++ b/pkgs/development/ocaml-modules/sha/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
ounit2
];
diff --git a/pkgs/development/ocaml-modules/shared-memory-ring/default.nix b/pkgs/development/ocaml-modules/shared-memory-ring/default.nix
index 2e4b656e638f..0b4974f910c9 100644
--- a/pkgs/development/ocaml-modules/shared-memory-ring/default.nix
+++ b/pkgs/development/ocaml-modules/shared-memory-ring/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
sha256 = "sha256-KW8grij/OAnFkdUdRRZF21X39DvqayzkTWeRKwF8uoU=";
};
- nativeBuildInputs = [
+ buildInputs = [
ppx_cstruct
];
@@ -28,7 +28,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
ounit
];
diff --git a/pkgs/development/ocaml-modules/shared-memory-ring/lwt.nix b/pkgs/development/ocaml-modules/shared-memory-ring/lwt.nix
index 75d62dd15a79..e3ae1ef2e3dc 100644
--- a/pkgs/development/ocaml-modules/shared-memory-ring/lwt.nix
+++ b/pkgs/development/ocaml-modules/shared-memory-ring/lwt.nix
@@ -27,7 +27,7 @@ buildDunePackage {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
ounit
];
diff --git a/pkgs/development/ocaml-modules/ssl/default.nix b/pkgs/development/ocaml-modules/ssl/default.nix
index 7730a5a62bae..7eca606f93fc 100644
--- a/pkgs/development/ocaml-modules/ssl/default.nix
+++ b/pkgs/development/ocaml-modules/ssl/default.nix
@@ -24,7 +24,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ openssl ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
preCheck = ''
mkdir -p _build/default/tests/
cp tests/digicert_certificate.pem _build/default/tests/
diff --git a/pkgs/development/ocaml-modules/stdcompat/default.nix b/pkgs/development/ocaml-modules/stdcompat/default.nix
index b8dcc81bfe7e..33e93967e192 100644
--- a/pkgs/development/ocaml-modules/stdcompat/default.nix
+++ b/pkgs/development/ocaml-modules/stdcompat/default.nix
@@ -12,8 +12,6 @@ buildDunePackage rec {
sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
};
- strictDeps = true;
-
# Otherwise ./configure script will run and create files conflicting with dune.
dontConfigure = true;
diff --git a/pkgs/development/ocaml-modules/stdint/default.nix b/pkgs/development/ocaml-modules/stdint/default.nix
index 5abcdc3dcfa2..cec0ec818300 100644
--- a/pkgs/development/ocaml-modules/stdint/default.nix
+++ b/pkgs/development/ocaml-modules/stdint/default.nix
@@ -26,7 +26,7 @@ buildDunePackage rec {
'';
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ qcheck ];
+ checkInputs = [ qcheck ];
meta = {
description = "Various signed and unsigned integers for OCaml";
diff --git a/pkgs/development/ocaml-modules/stringext/default.nix b/pkgs/development/ocaml-modules/stringext/default.nix
index 95b01e5d8fed..3d440cf48959 100644
--- a/pkgs/development/ocaml-modules/stringext/default.nix
+++ b/pkgs/development/ocaml-modules/stringext/default.nix
@@ -14,7 +14,7 @@ buildDunePackage {
sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv";
};
- nativeCheckInputs = [ ounit qtest ];
+ checkInputs = [ ounit qtest ];
inherit doCheck;
meta = {
diff --git a/pkgs/development/ocaml-modules/syslog-message/default.nix b/pkgs/development/ocaml-modules/syslog-message/default.nix
index 4e5ab303f5c5..2c12415cdbb2 100644
--- a/pkgs/development/ocaml-modules/syslog-message/default.nix
+++ b/pkgs/development/ocaml-modules/syslog-message/default.nix
@@ -23,7 +23,7 @@ buildDunePackage rec {
];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [
+ checkInputs = [
qcheck
];
diff --git a/pkgs/development/ocaml-modules/tcpip/default.nix b/pkgs/development/ocaml-modules/tcpip/default.nix
index a388bea4e867..0cd57ba9c8ff 100644
--- a/pkgs/development/ocaml-modules/tcpip/default.nix
+++ b/pkgs/development/ocaml-modules/tcpip/default.nix
@@ -23,12 +23,12 @@ buildDunePackage rec {
};
nativeBuildInputs = [
- bisect_ppx
- ppx_cstruct
pkg-config
];
propagatedBuildInputs = [
+ bisect_ppx
+ ppx_cstruct
rresult
cstruct
cstruct-lwt
@@ -58,7 +58,7 @@ buildDunePackage rec {
];
doCheck = false;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
mirage-flow
mirage-vnetif
diff --git a/pkgs/development/ocaml-modules/terminal/default.nix b/pkgs/development/ocaml-modules/terminal/default.nix
index fa18ce227155..e97fb223e415 100644
--- a/pkgs/development/ocaml-modules/terminal/default.nix
+++ b/pkgs/development/ocaml-modules/terminal/default.nix
@@ -18,7 +18,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ stdlib-shims uutf uucp ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
- nativeCheckInputs = [ alcotest fmt ];
+ checkInputs = [ alcotest fmt ];
meta = with lib; {
description = "Basic utilities for interacting with terminals";
diff --git a/pkgs/development/ocaml-modules/terminal_size/default.nix b/pkgs/development/ocaml-modules/terminal_size/default.nix
index 564b69505d7c..fa6bd003eaec 100644
--- a/pkgs/development/ocaml-modules/terminal_size/default.nix
+++ b/pkgs/development/ocaml-modules/terminal_size/default.nix
@@ -11,7 +11,7 @@ buildDunePackage rec {
sha256 = "fdca1fee7d872c4a8e5ab003d9915b6782b272e2a3661ca877f2d78dd25371a7";
};
- nativeCheckInputs = [ alcotest ];
+ checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
diff --git a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix
index 03c2ecca4052..47f9253e4473 100644
--- a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix
+++ b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix
@@ -1,14 +1,14 @@
-{
- lib,
- fetchFromGitLab,
- buildDunePackage,
- bls12-381,
- data-encoding,
- bigstringaf,
- alcotest,
- alcotest-lwt,
- bisect_ppx,
- qcheck-alcotest,
+{ lib
+, fetchFromGitLab
+, buildDunePackage
+, bls12-381
+, data-encoding
+, bigstringaf
+, alcotest
+, alcotest-lwt
+, bisect_ppx
+, qcheck-alcotest
+,
}:
buildDunePackage rec {
@@ -22,9 +22,9 @@ buildDunePackage rec {
sha256 = "sha256-H1Wog3GItTIVsawr9JkyyKq+uGqbTQPTR1dacpmxLbs=";
};
- propagatedBuildInputs = [bls12-381 data-encoding bigstringaf];
+ propagatedBuildInputs = [ bls12-381 data-encoding bigstringaf ];
- nativeCheckInputs = [alcotest alcotest-lwt bisect_ppx qcheck-alcotest];
+ checkInputs = [ alcotest alcotest-lwt bisect_ppx qcheck-alcotest ];
doCheck = false; # circular dependencies
@@ -32,6 +32,6 @@ buildDunePackage rec {
description = "Polynomials over BLS12-381 finite field";
license = lib.licenses.mit;
homepage = "https://gitlab.com/nomadic-labs/privacy-team";
- maintainers = [lib.maintainers.ulrikstrid];
+ maintainers = [ lib.maintainers.ulrikstrid ];
};
}
diff --git a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix
index 3eed3652e5f5..0f618f0d1e6b 100644
--- a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix
+++ b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix
@@ -30,7 +30,7 @@ buildDunePackage rec {
mec
];
- nativeCheckInputs = [ alcotest qcheck-alcotest bisect_ppx ];
+ checkInputs = [ alcotest qcheck-alcotest bisect_ppx ];
doCheck = false; # circular deps
diff --git a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix
index c602e8a3b0e2..f9b78e11d332 100644
--- a/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix
+++ b/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix
@@ -1,14 +1,14 @@
-{
- lib,
- buildDunePackage,
- hacl-star,
- bls12-381,
- tezos-bls12-381-polynomial,
- data-encoding,
- tezos-plompiler,
- alcotest,
- qcheck-alcotest,
- bisect_ppx,
+{ lib
+, buildDunePackage
+, hacl-star
+, bls12-381
+, tezos-bls12-381-polynomial
+, data-encoding
+, tezos-plompiler
+, alcotest
+, qcheck-alcotest
+, bisect_ppx
+,
}:
buildDunePackage rec {
@@ -25,7 +25,7 @@ buildDunePackage rec {
tezos-plompiler
];
- nativeCheckInputs = [ alcotest qcheck-alcotest bisect_ppx ];
+ checkInputs = [ alcotest qcheck-alcotest bisect_ppx ];
doCheck = false; # broken
diff --git a/pkgs/development/ocaml-modules/tls/default.nix b/pkgs/development/ocaml-modules/tls/default.nix
index a0c22b5026b4..b68edba2728e 100644
--- a/pkgs/development/ocaml-modules/tls/default.nix
+++ b/pkgs/development/ocaml-modules/tls/default.nix
@@ -38,7 +38,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
alcotest
cstruct-unix
ounit2
diff --git a/pkgs/development/ocaml-modules/tsdl/default.nix b/pkgs/development/ocaml-modules/tsdl/default.nix
index a7d1f573c69a..354a8ca2098a 100644
--- a/pkgs/development/ocaml-modules/tsdl/default.nix
+++ b/pkgs/development/ocaml-modules/tsdl/default.nix
@@ -19,6 +19,8 @@ stdenv.mkDerivation {
sha256 = "sha256-GqFz+bYG2ESkAEJyP8DKud4JFfU5MGLulzJa5Z4sptQ=";
};
+ strictDeps = true;
+
nativeBuildInputs = [ pkg-config ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
propagatedBuildInputs = [ SDL2 ctypes ]
diff --git a/pkgs/development/ocaml-modules/uecc/default.nix b/pkgs/development/ocaml-modules/uecc/default.nix
index 11ee8eb6b5eb..efb86d862476 100644
--- a/pkgs/development/ocaml-modules/uecc/default.nix
+++ b/pkgs/development/ocaml-modules/uecc/default.nix
@@ -15,7 +15,7 @@ buildDunePackage rec {
bigstring
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
cstruct
hex
diff --git a/pkgs/development/ocaml-modules/unstrctrd/default.nix b/pkgs/development/ocaml-modules/unstrctrd/default.nix
index b3cb4933b917..104cabfd0fae 100644
--- a/pkgs/development/ocaml-modules/unstrctrd/default.nix
+++ b/pkgs/development/ocaml-modules/unstrctrd/default.nix
@@ -28,7 +28,7 @@ buildDunePackage rec {
uutf
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest
bigstringaf
crowbar
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix
index fa659699cb70..f669a98c4def 100644
--- a/pkgs/development/ocaml-modules/uri/default.nix
+++ b/pkgs/development/ocaml-modules/uri/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
sha256 = "0szifda6yism5vn5jdizkha3ad0xk6zw4xgfl8g77dnv83ci7h65";
};
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
propagatedBuildInputs = [ angstrom stringext ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/uri/sexp.nix b/pkgs/development/ocaml-modules/uri/sexp.nix
index 9cb66139fb8e..ba970b1d6c51 100644
--- a/pkgs/development/ocaml-modules/uri/sexp.nix
+++ b/pkgs/development/ocaml-modules/uri/sexp.nix
@@ -8,7 +8,7 @@ buildDunePackage {
pname = "uri-sexp";
inherit (uri) version useDune2 src meta;
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
}
diff --git a/pkgs/development/ocaml-modules/uucp/default.nix b/pkgs/development/ocaml-modules/uucp/default.nix
index cfadc9e5fb37..476a4529f3fe 100644
--- a/pkgs/development/ocaml-modules/uucp/default.nix
+++ b/pkgs/development/ocaml-modules/uucp/default.nix
@@ -42,7 +42,7 @@ stdenv.mkDerivation {
${topkg.run} test
runHook postCheck
'';
- nativeCheckInputs = [ uucd ];
+ checkInputs = [ uucd ];
meta = with lib; {
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
diff --git a/pkgs/development/ocaml-modules/uuidm/default.nix b/pkgs/development/ocaml-modules/uuidm/default.nix
index 0ead92d9c54b..bece082f6418 100644
--- a/pkgs/development/ocaml-modules/uuidm/default.nix
+++ b/pkgs/development/ocaml-modules/uuidm/default.nix
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-/GZbkJVDQu1UY8SliK282kUWAVMfOnpQadUlRT/tJrM=";
};
+ strictDeps = true;
+
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
configurePlatforms = [];
buildInputs = [ topkg cmdliner ];
diff --git a/pkgs/development/ocaml-modules/uuuu/default.nix b/pkgs/development/ocaml-modules/uuuu/default.nix
index 8f4b4eadaed1..4473cd8217c0 100644
--- a/pkgs/development/ocaml-modules/uuuu/default.nix
+++ b/pkgs/development/ocaml-modules/uuuu/default.nix
@@ -25,8 +25,6 @@ buildDunePackage rec {
buildInputs = [ angstrom ];
- strictDeps = !doCheck;
-
nativeCheckInputs = [ re ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/vchan/default.nix b/pkgs/development/ocaml-modules/vchan/default.nix
index 703743250864..872d11606ff6 100644
--- a/pkgs/development/ocaml-modules/vchan/default.nix
+++ b/pkgs/development/ocaml-modules/vchan/default.nix
@@ -15,11 +15,8 @@ buildDunePackage rec {
sha256 = "sha256-5E7dITMVirYoxUkp8ZamRAolyhA6avXGJNAioxeBuV0=";
};
- nativeBuildInputs = [
- ppx_cstruct
- ];
-
propagatedBuildInputs = [
+ ppx_cstruct
ppx_sexp_conv
lwt
cstruct
@@ -31,7 +28,7 @@ buildDunePackage rec {
];
doCheck = true;
- nativeCheckInputs = [
+ checkInputs = [
cmdliner
ounit
];
diff --git a/pkgs/development/ocaml-modules/wayland/default.nix b/pkgs/development/ocaml-modules/wayland/default.nix
index 95c0c4a9dc42..f7ade2ec8070 100644
--- a/pkgs/development/ocaml-modules/wayland/default.nix
+++ b/pkgs/development/ocaml-modules/wayland/default.nix
@@ -33,7 +33,7 @@ buildDunePackage rec {
xmlm
];
- nativeCheckInputs = [
+ checkInputs = [
alcotest-lwt
];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/webmachine/default.nix b/pkgs/development/ocaml-modules/webmachine/default.nix
index c6335ba8a939..9f8749cac9fd 100644
--- a/pkgs/development/ocaml-modules/webmachine/default.nix
+++ b/pkgs/development/ocaml-modules/webmachine/default.nix
@@ -19,7 +19,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ cohttp dispatch ptime ];
- nativeCheckInputs = [ ounit ];
+ checkInputs = [ ounit ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/x509/default.nix b/pkgs/development/ocaml-modules/x509/default.nix
index 9bfe9489444c..bd7a7a0fa47c 100644
--- a/pkgs/development/ocaml-modules/x509/default.nix
+++ b/pkgs/development/ocaml-modules/x509/default.nix
@@ -17,7 +17,7 @@ buildDunePackage rec {
hash = "sha256-Zf/ZZjUAkeWe04XLmqMKgbxN/qe/Z1mpKM82veXVf2I=";
};
- nativeCheckInputs = [ alcotest cstruct-unix ];
+ checkInputs = [ alcotest cstruct-unix ];
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf logs base64 ipaddr ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/xenstore/default.nix b/pkgs/development/ocaml-modules/xenstore/default.nix
index a60341f569ce..a3f4e0abcdef 100644
--- a/pkgs/development/ocaml-modules/xenstore/default.nix
+++ b/pkgs/development/ocaml-modules/xenstore/default.nix
@@ -13,11 +13,11 @@ buildDunePackage rec {
hash = "sha256-1Mnqtt5zHeRdYJHvhdQNjN8d4yxUEKD2cpwtoc7DGC0=";
};
- nativeBuildInputs = [ ppx_cstruct ];
+ buildInputs = [ ppx_cstruct ];
propagatedBuildInputs = [ cstruct lwt ];
doCheck = true;
- nativeCheckInputs = [ ounit2 ];
+ checkInputs = [ ounit2 ];
meta = with lib; {
description = "Xenstore protocol in pure OCaml";
diff --git a/pkgs/development/ocaml-modules/yaml/default.nix b/pkgs/development/ocaml-modules/yaml/default.nix
index 401b7ce1dcf4..61a5a326395d 100644
--- a/pkgs/development/ocaml-modules/yaml/default.nix
+++ b/pkgs/development/ocaml-modules/yaml/default.nix
@@ -19,7 +19,8 @@ buildDunePackage rec {
propagatedBuildInputs = [ bos ctypes ];
doCheck = true;
- nativeCheckInputs = [ fmt logs mdx.bin alcotest crowbar junit_alcotest ezjsonm ];
+ nativeCheckInputs = [ mdx.bin ];
+ checkInputs = [ fmt logs alcotest crowbar junit_alcotest ezjsonm ];
meta = {
description = "Parse and generate YAML 1.1 files";
diff --git a/pkgs/development/ocaml-modules/yuscii/default.nix b/pkgs/development/ocaml-modules/yuscii/default.nix
index 44f64361540e..c0582fa2a224 100644
--- a/pkgs/development/ocaml-modules/yuscii/default.nix
+++ b/pkgs/development/ocaml-modules/yuscii/default.nix
@@ -19,10 +19,10 @@ buildDunePackage rec {
sha256 = "0idywlkw0fbakrxv65swnr5bj7f2vns9kpay7q03gzlv82p670hy";
};
- useDune2 = true;
-
nativeCheckInputs = [
gcc
+ ];
+ checkInputs = [
alcotest
fmt
uutf
diff --git a/pkgs/development/ocaml-modules/yuujinchou/default.nix b/pkgs/development/ocaml-modules/yuujinchou/default.nix
index e156e8cbb331..5a78809d9099 100644
--- a/pkgs/development/ocaml-modules/yuujinchou/default.nix
+++ b/pkgs/development/ocaml-modules/yuujinchou/default.nix
@@ -14,7 +14,7 @@ buildDunePackage rec {
};
doCheck = true;
- nativeCheckInputs = [ qcheck-alcotest ];
+ checkInputs = [ qcheck-alcotest ];
meta = {
description = "Name pattern combinators";
diff --git a/pkgs/development/tools/analysis/flow/default.nix b/pkgs/development/tools/analysis/flow/default.nix
index a7cc801c70cd..7a4ed91b9530 100644
--- a/pkgs/development/tools/analysis/flow/default.nix
+++ b/pkgs/development/tools/analysis/flow/default.nix
@@ -18,7 +18,10 @@ stdenv.mkDerivation rec {
install -Dm644 resources/shell/bash-completion $out/share/bash-completion/completions/flow
'';
- buildInputs = (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml-migrate-parsetree-2 dtoa fileutils core_kernel sedlex ocaml_lwt lwt_log lwt_ppx ppx_deriving ppx_gen_rec visitors wtf8 ])
+ strictDeps = true;
+
+ nativeBuildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild ];
+ buildInputs = with ocamlPackages; [ ocaml-migrate-parsetree-2 dtoa fileutils core_kernel sedlex ocaml_lwt lwt_log lwt_ppx ppx_deriving ppx_gen_rec visitors wtf8 ]
++ lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with lib; {
diff --git a/pkgs/development/tools/analysis/frama-c/default.nix b/pkgs/development/tools/analysis/frama-c/default.nix
index 9dba3692ad3a..761662053c1d 100644
--- a/pkgs/development/tools/analysis/frama-c/default.nix
+++ b/pkgs/development/tools/analysis/frama-c/default.nix
@@ -44,13 +44,14 @@ stdenv.mkDerivation rec {
};
preConfigure = lib.optionalString stdenv.cc.isClang "configureFlagsArray=(\"--with-cpp=clang -E -C\")";
-
postConfigure = "patchShebangs src/plugins/value/gen-api.sh";
- nativeBuildInputs = [ autoconf wrapGAppsHook ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ autoconf wrapGAppsHook ] ++ (with ocamlPackages; [ ocaml findlib ]);
buildInputs = with ocamlPackages; [
- ncurses ocaml findlib ltl2ba ocamlgraph yojson menhirLib camlzip
+ ncurses ltl2ba ocamlgraph yojson menhirLib camlzip
lablgtk3 lablgtk3-sourceview3 coq graphviz zarith apron why3 mlgmpidl doxygen
ppx_deriving ppx_import
gdk-pixbuf
diff --git a/pkgs/development/tools/comby/default.nix b/pkgs/development/tools/comby/default.nix
index 60221444da0d..ac2d36c92391 100644
--- a/pkgs/development/tools/comby/default.nix
+++ b/pkgs/development/tools/comby/default.nix
@@ -28,12 +28,7 @@ let
patches = [ ./comby.patch ];
- nativeBuildInputs = [
- ocamlPackages.ppx_deriving
- ocamlPackages.ppx_deriving_yojson
- ocamlPackages.ppx_sexp_conv
- ocamlPackages.ppx_sexp_message
- ] ++ extraNativeInputs;
+ nativeBuildInputs = extraNativeInputs;
buildInputs = [
ocamlPackages.core
@@ -42,6 +37,10 @@ let
ocamlPackages.mparser
ocamlPackages.mparser-pcre
ocamlPackages.angstrom
+ ocamlPackages.ppx_deriving
+ ocamlPackages.ppx_deriving_yojson
+ ocamlPackages.ppx_sexp_conv
+ ocamlPackages.ppx_sexp_message
] ++ extraBuildInputs;
nativeCheckInputs = [ cacert ];
@@ -87,6 +86,9 @@ mkCombyPackage {
ocamlPackages.lwt_react
ocamlPackages.tar-unix
ocamlPackages.tls
+ ocamlPackages.ppx_jane
+ ocamlPackages.ppx_expect
+ ocamlPackages.dune-configurator
combyKernel
combySemantic
] ++ (if !stdenv.isAarch32 && !stdenv.isAarch64 then
@@ -97,9 +99,6 @@ mkCombyPackage {
extraNativeInputs = [
autoconf
pkg-config
- ocamlPackages.ppx_jane
- ocamlPackages.ppx_expect
- ocamlPackages.dune-configurator
];
}
diff --git a/pkgs/development/tools/java/sawjap/default.nix b/pkgs/development/tools/java/sawjap/default.nix
index b4c682bbd220..0686d4fb2ed4 100644
--- a/pkgs/development/tools/java/sawjap/default.nix
+++ b/pkgs/development/tools/java/sawjap/default.nix
@@ -10,7 +10,10 @@ stdenv.mkDerivation {
prePatch = "cd test";
- buildInputs = [ ocaml findlib sawja ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml findlib ];
+ buildInputs = [ sawja ];
buildPhase = ''
runHook preBuild
diff --git a/pkgs/development/tools/ocaml/camlp4/default.nix b/pkgs/development/tools/ocaml/camlp4/default.nix
index 471932ff83f7..dd25dd864cee 100644
--- a/pkgs/development/tools/ocaml/camlp4/default.nix
+++ b/pkgs/development/tools/ocaml/camlp4/default.nix
@@ -56,7 +56,9 @@ stdenv.mkDerivation rec {
inherit (param) sha256;
};
- buildInputs = [ which ocaml ocamlbuild ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ which ocaml ocamlbuild ];
# build fails otherwise
enableParallelBuilding = false;
diff --git a/pkgs/development/tools/ocaml/camlp5/default.nix b/pkgs/development/tools/ocaml/camlp5/default.nix
index 65debca11c23..9d81c46e20c9 100644
--- a/pkgs/development/tools/ocaml/camlp5/default.nix
+++ b/pkgs/development/tools/ocaml/camlp5/default.nix
@@ -17,7 +17,9 @@ stdenv.mkDerivation rec {
sha256 = "1dd68bisbpqn5lq2pslm582hxglcxnbkgfkwhdz67z4w9d5nvr7w";
};
- buildInputs = [ ocaml perl ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml perl ];
prefixKey = "-prefix ";
diff --git a/pkgs/development/tools/ocaml/cppo/default.nix b/pkgs/development/tools/ocaml/cppo/default.nix
index 753ef0a836b9..87db3baf0b0e 100644
--- a/pkgs/development/tools/ocaml/cppo/default.nix
+++ b/pkgs/development/tools/ocaml/cppo/default.nix
@@ -52,7 +52,9 @@ stdenv.mkDerivation {
sha256 = "1xqldjz9risndnabvadw41fdbi5sa2hl4fnqls7j9xfbby1izbg8";
};
- buildInputs = [ ocaml findlib ocamlbuild ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml findlib ocamlbuild ];
inherit meta;
diff --git a/pkgs/development/tools/ocaml/dune-release/default.nix b/pkgs/development/tools/ocaml/dune-release/default.nix
index 7e48203c091e..7bc1f80c699f 100644
--- a/pkgs/development/tools/ocaml/dune-release/default.nix
+++ b/pkgs/development/tools/ocaml/dune-release/default.nix
@@ -20,10 +20,11 @@ in buildDunePackage rec {
sha256 = "sha256-oJ5SL7qNM5izoEpr+nTjbT+YmmNIoy7QgSNse3wNIA4=";
};
- nativeBuildInputs = [ makeWrapper ];
+ nativeBuildInputs = [ makeWrapper ] ++ runtimeInputs;
buildInputs = [ curly fmt cmdliner re opam-format opam-state opam-core
rresult logs odoc bos yojson astring fpath ];
- nativeCheckInputs = [ alcotest ] ++ runtimeInputs;
+ nativeCheckInputs = [ odoc ];
+ checkInputs = [ alcotest ] ++ runtimeInputs;
doCheck = true;
postPatch = ''
diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix b/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
index cec91a02f209..5faccab938ee 100644
--- a/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
+++ b/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
@@ -1,5 +1,5 @@
{ lib, fetchurl, buildDunePackage
-, cmdliner, yojson, ppxlib
+, cmdliner, yojson, ppxlib, findlib
, menhir, menhirLib
}:
@@ -17,7 +17,7 @@ buildDunePackage rec {
buildInputs = [ cmdliner ppxlib ];
configurePlatforms = [];
- propagatedBuildInputs = [ menhirLib yojson ];
+ propagatedBuildInputs = [ menhirLib yojson findlib ];
meta = {
description = "Compiler from OCaml bytecode to Javascript";
diff --git a/pkgs/development/tools/ocaml/obuild/default.nix b/pkgs/development/tools/ocaml/obuild/default.nix
index 8a4dce342231..4a0a87577cbf 100644
--- a/pkgs/development/tools/ocaml/obuild/default.nix
+++ b/pkgs/development/tools/ocaml/obuild/default.nix
@@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-dqWP9rwWmr7i3O29v/kipJL01B3qQozaToOFCdfTWZU=";
};
- buildInputs = [ ocaml ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml ];
buildPhase = ''
patchShebangs ./bootstrap
diff --git a/pkgs/development/tools/ocaml/ocaml-top/default.nix b/pkgs/development/tools/ocaml/ocaml-top/default.nix
index f5853057d8e0..095af7769140 100644
--- a/pkgs/development/tools/ocaml/ocaml-top/default.nix
+++ b/pkgs/development/tools/ocaml/ocaml-top/default.nix
@@ -11,7 +11,8 @@ with ocamlPackages; buildDunePackage rec {
sha256 = "sha256-ZXnPnPvJmHshkTwYWeBojrgJYAF/R6vUo0XkvVMFSeQ=";
};
- buildInputs = [ ncurses ocp-build lablgtk3-sourceview3 ocp-index ];
+ nativeBuildInputs = [ ocp-build ];
+ buildInputs = [ ncurses lablgtk3-sourceview3 ocp-index ];
configurePhase = ''
export TERM=xterm
diff --git a/pkgs/development/tools/ocaml/ocamlify/default.nix b/pkgs/development/tools/ocaml/ocamlify/default.nix
index b40c8b42546b..0ac69f86c90d 100644
--- a/pkgs/development/tools/ocaml/ocamlify/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlify/default.nix
@@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii";
};
- buildInputs = [ ocaml findlib ocamlbuild ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml findlib ocamlbuild ];
configurePhase = ''
substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
diff --git a/pkgs/development/tools/ocaml/ocamlmod/default.nix b/pkgs/development/tools/ocaml/ocamlmod/default.nix
index 551a36adaed1..5b4f7e8e4407 100644
--- a/pkgs/development/tools/ocaml/ocamlmod/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlmod/default.nix
@@ -14,7 +14,9 @@ stdenv.mkDerivation {
sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
};
- buildInputs = [ ocaml findlib ocamlbuild ];
+ strictDeps = !doCheck;
+
+ nativeBuildInputs = [ ocaml findlib ocamlbuild ];
configurePhase = "ocaml setup.ml -configure --prefix $out"
+ lib.optionalString doCheck " --enable-tests";
diff --git a/pkgs/development/tools/ocaml/ocamlscript/default.nix b/pkgs/development/tools/ocaml/ocamlscript/default.nix
index 48b7d840a4f2..8277f4adb06d 100644
--- a/pkgs/development/tools/ocaml/ocamlscript/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlscript/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256:10xz8jknlmcgnf233nahd04q98ijnxpijhpvb8hl7sv94dgkvpql";
};
- propagatedBuildInputs = [ ocaml findlib ];
+ nativeBuildInputs = [ ocaml findlib ];
patches = [ ./Makefile.patch ];
diff --git a/pkgs/development/tools/ocaml/ocp-build/default.nix b/pkgs/development/tools/ocaml/ocp-build/default.nix
index feb787d24d5d..de26536eb1c5 100644
--- a/pkgs/development/tools/ocaml/ocp-build/default.nix
+++ b/pkgs/development/tools/ocaml/ocp-build/default.nix
@@ -19,7 +19,10 @@ stdenv.mkDerivation rec {
})
];
- buildInputs = [ ocaml findlib cmdliner_1_0 re ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml findlib ];
+ buildInputs = [ cmdliner_1_0 re ];
propagatedBuildInputs = [ ncurses ];
preInstall = "mkdir -p $out/bin";
diff --git a/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix b/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix
index 54e1ee55a7bf..fcb43938112d 100644
--- a/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix
+++ b/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix
@@ -4,7 +4,10 @@ stdenv.mkDerivation rec {
pname = "ocsigen-i18n";
version = "3.7.0";
- buildInputs = with ocamlPackages; [ ocaml findlib ppx_tools ];
+ strictDeps = true;
+
+ nativeBuildInputs = with ocamlPackages; [ ocaml findlib ];
+ buildInputs = with ocamlPackages; [ ppx_tools ];
dontStrip = true;
diff --git a/pkgs/development/tools/ocaml/omake/default.nix b/pkgs/development/tools/ocaml/omake/default.nix
index f6c7955c6863..b7d670ce4a7e 100644
--- a/pkgs/development/tools/ocaml/omake/default.nix
+++ b/pkgs/development/tools/ocaml/omake/default.nix
@@ -10,7 +10,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VOFq2KLBbmZCRgHzfpD7p0iyF8yU1tTbyvTiOcpm98Q=";
};
- buildInputs = [ ocaml ncurses ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml ];
+ buildInputs = [ ncurses ];
meta = {
description = "A build system designed for scalability and portability";
diff --git a/pkgs/development/tools/ocaml/opam/1.2.2.nix b/pkgs/development/tools/ocaml/opam/1.2.2.nix
index 60804684ccbc..23a73002e6fe 100644
--- a/pkgs/development/tools/ocaml/opam/1.2.2.nix
+++ b/pkgs/development/tools/ocaml/opam/1.2.2.nix
@@ -47,8 +47,10 @@ in stdenv.mkDerivation {
pname = "opam";
version = "1.2.2";
- nativeBuildInputs = [ makeWrapper unzip ];
- buildInputs = [ curl ncurses ocaml ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper unzip curl ocaml ];
+ buildInputs = [ ncurses ];
src = srcs.opam;
diff --git a/pkgs/development/tools/ocaml/opam/default.nix b/pkgs/development/tools/ocaml/opam/default.nix
index de831fde99f1..1db7ea151fab 100644
--- a/pkgs/development/tools/ocaml/opam/default.nix
+++ b/pkgs/development/tools/ocaml/opam/default.nix
@@ -79,8 +79,10 @@ in stdenv.mkDerivation {
pname = "opam";
version = "2.1.4";
- nativeBuildInputs = [ makeWrapper unzip ];
- buildInputs = [ curl ncurses ocaml getconf ]
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper unzip ocaml curl ];
+ buildInputs = [ ncurses getconf ]
++ lib.optionals stdenv.isLinux [ bubblewrap ]
++ lib.optionals stdenv.isDarwin [ Foundation ];
diff --git a/pkgs/development/tools/ocaml/opam/opam.nix.pl b/pkgs/development/tools/ocaml/opam/opam.nix.pl
index 8929afdef0ab..8b573039d7d8 100755
--- a/pkgs/development/tools/ocaml/opam/opam.nix.pl
+++ b/pkgs/development/tools/ocaml/opam/opam.nix.pl
@@ -68,8 +68,10 @@ in stdenv.mkDerivation {
pname = "opam";
version = "$OPAM_RELEASE";
- nativeBuildInputs = [ makeWrapper unzip ];
- buildInputs = [ curl ncurses ocaml getconf ]
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper unzip ocaml curl ];
+ buildInputs = [ ncurses getconf ]
++ lib.optionals stdenv.isLinux [ bubblewrap ]
++ lib.optionals stdenv.isDarwin [ Foundation ];
diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix
index 5d500339ff67..0afaff264947 100644
--- a/pkgs/development/tools/ocaml/utop/default.nix
+++ b/pkgs/development/tools/ocaml/utop/default.nix
@@ -11,7 +11,7 @@ let
version = "2.10.0";
sha256 = "sha256-R10WovnqYcYCrDJnPuIQx2zHaPchSYfXDAaVMsJ4LQA=";
duneVersion = "3";
- propagatedBuildInputs = [ lambda-term zed logs ];
+ propagatedBuildInputs = [ findlib lambda-term zed logs ];
}
else
{
diff --git a/pkgs/tools/audio/liquidsoap/full.nix b/pkgs/tools/audio/liquidsoap/full.nix
index 411aaece5329..5f61a9660f2a 100644
--- a/pkgs/tools/audio/liquidsoap/full.nix
+++ b/pkgs/tools/audio/liquidsoap/full.nix
@@ -23,71 +23,76 @@ stdenv.mkDerivation {
--prefix PATH : ${lib.makeBinPath runtimePackages}
'';
- nativeBuildInputs = [ makeWrapper pkg-config ];
- buildInputs = [
- libjpeg
- which
- ocamlPackages.ocaml ocamlPackages.findlib
- # Mandatory dependencies
- ocamlPackages.dtools
- ocamlPackages.duppy
- ocamlPackages.mm
- ocamlPackages.ocaml_pcre
- ocamlPackages.menhir ocamlPackages.menhirLib
- ocamlPackages.camomile
- ocamlPackages.ocurl
- ocamlPackages.uri
- ocamlPackages.sedlex
+ strictDeps = true;
- # Recommended dependencies
- ocamlPackages.ffmpeg
-
- # Optional dependencies
- ocamlPackages.camlimages
- ocamlPackages.gd4o
- ocamlPackages.alsa
- ocamlPackages.ao
- ocamlPackages.bjack
- ocamlPackages.cry
- ocamlPackages.dssi
- ocamlPackages.faad
- ocamlPackages.fdkaac
- ocamlPackages.flac
- ocamlPackages.frei0r
- ocamlPackages.gstreamer
- ocamlPackages.inotify
- ocamlPackages.ladspa
- ocamlPackages.lame
- ocamlPackages.lastfm
- ocamlPackages.lilv
- ocamlPackages.lo
- ocamlPackages.mad
- ocamlPackages.magic
- ocamlPackages.ogg
- ocamlPackages.opus
- ocamlPackages.portaudio
- ocamlPackages.pulseaudio
- ocamlPackages.shine
- ocamlPackages.samplerate
- ocamlPackages.soundtouch
- ocamlPackages.speex
- ocamlPackages.srt
- ocamlPackages.ssl
- ocamlPackages.taglib
- ocamlPackages.theora
- ocamlPackages.vorbis
- ocamlPackages.xmlplaylist
- ocamlPackages.posix-time2
- ocamlPackages.tsdl
- ocamlPackages.tsdl-image
- ocamlPackages.tsdl-ttf
-
- # Undocumented dependencies
- ocamlPackages.graphics
- ocamlPackages.cohttp-lwt-unix
+ nativeBuildInputs =
+ [ makeWrapper pkg-config which
+ ocamlPackages.ocaml ocamlPackages.findlib ocamlPackages.menhir
];
+ buildInputs = [
+ libjpeg
+
+ # Mandatory dependencies
+ ocamlPackages.dtools
+ ocamlPackages.duppy
+ ocamlPackages.mm
+ ocamlPackages.ocaml_pcre
+ ocamlPackages.menhir ocamlPackages.menhirLib
+ ocamlPackages.camomile
+ ocamlPackages.ocurl
+ ocamlPackages.uri
+ ocamlPackages.sedlex
+
+ # Recommended dependencies
+ ocamlPackages.ffmpeg
+
+ # Optional dependencies
+ ocamlPackages.camlimages
+ ocamlPackages.gd4o
+ ocamlPackages.alsa
+ ocamlPackages.ao
+ ocamlPackages.bjack
+ ocamlPackages.cry
+ ocamlPackages.dssi
+ ocamlPackages.faad
+ ocamlPackages.fdkaac
+ ocamlPackages.flac
+ ocamlPackages.frei0r
+ ocamlPackages.gstreamer
+ ocamlPackages.inotify
+ ocamlPackages.ladspa
+ ocamlPackages.lame
+ ocamlPackages.lastfm
+ ocamlPackages.lilv
+ ocamlPackages.lo
+ ocamlPackages.mad
+ ocamlPackages.magic
+ ocamlPackages.ogg
+ ocamlPackages.opus
+ ocamlPackages.portaudio
+ ocamlPackages.pulseaudio
+ ocamlPackages.shine
+ ocamlPackages.samplerate
+ ocamlPackages.soundtouch
+ ocamlPackages.speex
+ ocamlPackages.srt
+ ocamlPackages.ssl
+ ocamlPackages.taglib
+ ocamlPackages.theora
+ ocamlPackages.vorbis
+ ocamlPackages.xmlplaylist
+ ocamlPackages.posix-time2
+ ocamlPackages.tsdl
+ ocamlPackages.tsdl-image
+ ocamlPackages.tsdl-ttf
+
+ # Undocumented dependencies
+ ocamlPackages.graphics
+ ocamlPackages.cohttp-lwt-unix
+ ];
+
meta = with lib; {
description = "Swiss-army knife for multimedia streaming";
homepage = "https://www.liquidsoap.info/";
diff --git a/pkgs/tools/misc/bibtex2html/default.nix b/pkgs/tools/misc/bibtex2html/default.nix
index 0add7340ed5a..2e5ebd1e56a2 100644
--- a/pkgs/tools/misc/bibtex2html/default.nix
+++ b/pkgs/tools/misc/bibtex2html/default.nix
@@ -9,7 +9,9 @@ stdenv.mkDerivation {
sha256 = "07gzrs4lfrkvbn48cgn2gn6c7cx3jsanakkrb2irj0gmjzfxl96j";
};
- buildInputs = [ ocaml perl ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ ocaml perl ];
meta = with lib; {
description = "A collection of tools for translating from BibTeX to HTML";
diff --git a/pkgs/tools/misc/ledit/default.nix b/pkgs/tools/misc/ledit/default.nix
index 18efb8c95285..6070bfb2fafb 100644
--- a/pkgs/tools/misc/ledit/default.nix
+++ b/pkgs/tools/misc/ledit/default.nix
@@ -14,7 +14,9 @@ stdenv.mkDerivation {
substituteInPlace Makefile --replace /bin/rm rm --replace BINDIR=/usr/local/bin BINDIR=$out/bin
'';
- buildInputs = [
+ strictDeps = true;
+
+ nativeBuildInputs = [
ocaml
camlp5
];
diff --git a/pkgs/tools/misc/wyrd/default.nix b/pkgs/tools/misc/wyrd/default.nix
index d1244cc73c47..df8b4933aa69 100644
--- a/pkgs/tools/misc/wyrd/default.nix
+++ b/pkgs/tools/misc/wyrd/default.nix
@@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
substituteInPlace curses/curses.ml --replace 'pp gcc' "pp $CC"
'';
- buildInputs = [ ocamlPackages.ocaml ncurses remind ocamlPackages.camlp4 ];
+ strictDeps = true;
+ nativeBuildInputs = [ ocamlPackages.ocaml ocamlPackages.camlp4 ];
+ buildInputs = [ ncurses remind ];
preferLocalBuild = true;
diff --git a/pkgs/tools/typesetting/hevea/default.nix b/pkgs/tools/typesetting/hevea/default.nix
index a0eb1f75a35d..f03ee980583f 100644
--- a/pkgs/tools/typesetting/hevea/default.nix
+++ b/pkgs/tools/typesetting/hevea/default.nix
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-XWdZ13AqKVx2oSwbKhoWdUqw7B/+1z/J0LE4tB5yBkg=";
};
+ strictDeps = true;
+
nativeBuildInputs = with ocamlPackages; [ ocaml ocamlbuild ];
makeFlags = [ "PREFIX=$(out)" ];
diff --git a/pkgs/tools/typesetting/pdfsandwich/default.nix b/pkgs/tools/typesetting/pdfsandwich/default.nix
index 755ac6bb32a3..26037b05664d 100644
--- a/pkgs/tools/typesetting/pdfsandwich/default.nix
+++ b/pkgs/tools/typesetting/pdfsandwich/default.nix
@@ -10,8 +10,9 @@ stdenv.mkDerivation {
sha256 = "1420c33divch087xrr61lvyf975bapqkgjqaighl581i69nlzsm6";
};
- nativeBuildInputs = [ makeWrapper ];
- buildInputs = [ ocaml perl ];
+ strictDeps = true;
+
+ nativeBuildInputs = [ makeWrapper ocaml perl ];
installPhase = ''
mkdir -p $out/bin
cp -p pdfsandwich $out/bin
diff --git a/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix b/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
index 3931fe9c3da0..7943457d3815 100644
--- a/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
+++ b/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
@@ -25,12 +25,12 @@ ocamlPackages.buildDunePackage rec {
strictDeps = true;
nativeBuildInputs = [
- ocamlPackages.ppx_cstruct
pkg-config
];
buildInputs = [ libdrm ] ++ (with ocamlPackages; [
dune-configurator
+ ppx_cstruct
wayland
cmdliner
logs