1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 alcotest,
6}:
7
8buildDunePackage rec {
9 pname = "ohex";
10 version = "0.2.0";
11
12 src = fetchurl {
13 url = "https://github.com/ocaml/opam-source-archives/raw/main/ohex-${version}.tar.gz";
14 hash = "sha256-prV7rbo0sAx3S2t4YtjniJEVq43uLXK8ZMsqoMzn2Ow=";
15 };
16
17 doCheck = true;
18 checkInputs = [ alcotest ];
19
20 meta = {
21 description = "Hexadecimal encoding and decoding";
22 license = lib.licenses.bsd2;
23 maintainers = [ lib.maintainers.vbgl ];
24 };
25}