about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cstruct/lwt.nix
blob: 3aa70e5c9986d534527d950ff745468fe2befde0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, buildDunePackage, cstruct, lwt }:

if lib.versionOlder (cstruct.version or "1") "3"
then cstruct
else

  buildDunePackage {
    pname = "cstruct-lwt";
    inherit (cstruct) version src meta;

    minimalOCamlVersion = "4.08";
    duneVersion = "3";

    propagatedBuildInputs = [ cstruct lwt ];
  }