summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/eio/main.nix
blob: d60f178d68594dae8e409750c41a219bd88f0f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  stdenv,
  buildDunePackage,
  dune-configurator,
  eio,
  eio_posix,
  eio_linux,
}:

buildDunePackage {
  pname = "eio_main";
  inherit (eio)
    meta
    src
    patches
    version
    ;

  minimalOCamlVersion = "5.0";

  dontStrip = true;

  buildInputs = lib.optional (lib.versionAtLeast eio.version "1.4") dune-configurator;

  propagatedBuildInputs = [
    eio_posix
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    eio_linux
  ];
}