1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 cstruct,
6}:
7
8buildDunePackage rec {
9 pname = "hex";
10 version = "1.5.0";
11
12 duneVersion = "3";
13 minimalOCamlVersion = "4.08";
14
15 src = fetchurl {
16 url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-${version}.tbz";
17 hash = "sha256-LmfuyhsDBJMHowgxtc1pS8stPn8qa0+1l/vbZHNRtNw=";
18 };
19
20 propagatedBuildInputs = [ cstruct ];
21 doCheck = true;
22
23 meta = {
24 description = "Mininal OCaml library providing hexadecimal converters";
25 homepage = "https://github.com/mirage/ocaml-hex";
26 license = lib.licenses.isc;
27 maintainers = with lib.maintainers; [ vbgl ];
28 };
29}