Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 21 lines 537 B view raw
1{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims 2, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp 3}: 4 5if lib.versionOlder (cstruct.version or "1") "3" 6then cstruct 7else 8 9 buildDunePackage { 10 pname = "ppx_cstruct"; 11 inherit (cstruct) version src meta; 12 13 minimalOCamlVersion = "4.08"; 14 duneVersion = "3"; 15 16 propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ]; 17 18 doCheck = true; 19 nativeCheckInputs = [ cppo ]; 20 checkInputs = [ ounit ppx_sexp_conv cstruct-sexp cstruct-unix ]; 21 }