1{ lib, fetchurl, buildDunePackage, fmt, alcotest, crowbar }: 2 3buildDunePackage rec { 4 pname = "cstruct"; 5 version = "6.2.0"; 6 7 minimalOCamlVersion = "4.08"; 8 duneVersion = "3"; 9 10 src = fetchurl { 11 url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz"; 12 hash = "sha256-mngHM5JYDoNJFI+jq0sbLpidydMNB0AbBMlrfGDwPmI="; 13 }; 14 15 buildInputs = [ fmt ]; 16 17 doCheck = true; 18 checkInputs = [ alcotest crowbar ]; 19 20 meta = { 21 description = "Access C-like structures directly from OCaml"; 22 license = lib.licenses.isc; 23 homepage = "https://github.com/mirage/ocaml-cstruct"; 24 maintainers = [ lib.maintainers.vbgl ]; 25 }; 26}