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