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