summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/hex/default.nix
blob: ca7039c300dc9e0da51f47dea848b78464338c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  lib,
  fetchurl,
  buildDunePackage,
  cstruct,
}:

buildDunePackage (finalAttrs: {
  pname = "hex";
  version = "1.5.0";

  duneVersion = "3";
  minimalOCamlVersion = "4.08";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-hex/releases/download/v${finalAttrs.version}/hex-${finalAttrs.version}.tbz";
    hash = "sha256-LmfuyhsDBJMHowgxtc1pS8stPn8qa0+1l/vbZHNRtNw=";
  };

  propagatedBuildInputs = [ cstruct ];
  doCheck = true;

  meta = {
    description = "Minimal OCaml library providing hexadecimal converters";
    homepage = "https://github.com/mirage/ocaml-hex";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ vbgl ];
  };
})