about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cstruct/lwt.nix
blob: 7226193565b1964056151262d55281721cc7edea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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";

    propagatedBuildInputs = [ cstruct lwt ];
  }