summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/cstruct/unix.nix
blob: 8f3e139563d90a33f26d8f71b2684ba0011d391f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  lib,
  buildDunePackage,
  cstruct,
}:

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

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

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

    propagatedBuildInputs = [ cstruct ];
  }