ocamlPackages.mdx: Reduce closure size

Disable the optional dependencies of the logs library: js_of_ocaml, lwt
Mdx is a binary tool so this is unlikely to cause a problem.
This commit is contained in:
Jules Aguillon 2023-07-04 13:56:44 +02:00 committed by Vincent Laporte
parent b722b9ddff
commit 9a03ab9b7a

View File

@ -4,6 +4,13 @@
, gitUpdater
}:
let
# Strip optional dependencies from logs to make the closure smaller as this
# package contains a binary
logs' = logs.override { jsooSupport = false; lwtSupport = false; };
in
buildDunePackage rec {
pname = "mdx";
version = "2.3.1";
@ -16,7 +23,9 @@ buildDunePackage rec {
};
nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [ astring fmt logs csexp ocaml-version camlp-streams re findlib ];
propagatedBuildInputs = [
astring fmt logs' csexp ocaml-version camlp-streams re findlib
];
checkInputs = [ alcotest lwt ];
doCheck = true;