mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 20:23:39 +00:00
1461dbbee3
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.
34 lines
452 B
Nix
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
|
|
];
|
|
}
|