nixpkgs/pkgs/development/ocaml-modules/eio/posix.nix
Alyssa Ross 1461dbbee3 ocamlPackages.eio_*: inherit patches from eio
If we're inheriting src from eio to use the same source tree, it makes
sense to inherit patches as well.  Currently we don't apply patches to
eio, but this is useful for overlays, and will help avoid a potential
oversight if we do need a patch in future.
2024-05-23 16:34:29 +02:00

34 lines
452 B
Nix

{ buildDunePackage
, lib
, stdenv
, dune-configurator
, eio
, fmt
, logs
, iomux
}:
buildDunePackage {
pname = "eio_posix";
inherit (eio) meta src patches version;
minimalOCamlVersion = "5.0";
dontStrip = true;
env = lib.optionalAttrs stdenv.isDarwin {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
buildInputs = [
dune-configurator
];
propagatedBuildInputs = [
eio
fmt
logs
iomux
];
}