2022-10-21 18:38:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, fmt, alcotest, crowbar }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cstruct";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "6.2.0";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-mngHM5JYDoNJFI+jq0sbLpidydMNB0AbBMlrfGDwPmI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [ fmt ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest crowbar ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Access C-like structures directly from OCaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
homepage = "https://github.com/mirage/ocaml-cstruct";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|