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