Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, cstruct, lwt }:
2
3if lib.versionOlder (cstruct.version or "1") "3"
4then cstruct
5else
6
7 buildDunePackage {
8 pname = "cstruct-lwt";
9 inherit (cstruct) version src meta;
10
11 minimalOCamlVersion = "4.08";
12 duneVersion = "3";
13
14 propagatedBuildInputs = [ cstruct lwt ];
15 }