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:
parent
b722b9ddff
commit
9a03ab9b7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user