ocamlPackages.logs: allow overriding logs

This commit is contained in:
Antonio Nuno Monteiro 2024-02-20 14:23:33 -08:00
parent 90e53f28a9
commit 0103c333d6
2 changed files with 4 additions and 9 deletions

View file

@ -4,13 +4,6 @@
, gitUpdater , 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 { buildDunePackage rec {
pname = "mdx"; pname = "mdx";
version = "2.3.1"; version = "2.3.1";
@ -24,7 +17,7 @@ buildDunePackage rec {
nativeBuildInputs = [ cppo ]; nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [ propagatedBuildInputs = [
astring fmt logs' csexp ocaml-version camlp-streams re findlib astring fmt logs csexp ocaml-version camlp-streams re findlib
]; ];
checkInputs = [ alcotest lwt ]; checkInputs = [ alcotest lwt ];

View file

@ -1032,7 +1032,9 @@ let
mccs = callPackage ../development/ocaml-modules/mccs { }; mccs = callPackage ../development/ocaml-modules/mccs { };
mdx = callPackage ../development/ocaml-modules/mdx { }; mdx = callPackage ../development/ocaml-modules/mdx {
logs = logs.override { jsooSupport = false; lwtSupport = false; };
};
mec = callPackage ../development/ocaml-modules/mec { }; mec = callPackage ../development/ocaml-modules/mec { };