about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/hex/default.nix
blob: 4a6123ebd3a66c8ceb59fea23e6cd20ee0e761df (plain) (blame)
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
{ lib, fetchurl, buildDunePackage, bigarray-compat, cstruct }:

buildDunePackage rec {
  pname = "hex";
  version = "1.4.0";

  useDune2 = true;

  minimumOCamlVersion = "4.02";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-v${version}.tbz";
    sha256 = "07b9y0lmnflsslkrm6xilkj40n8sf2hjqkyqghnk7sw5l0plkqsp";
  };

  propagatedBuildInputs = [ bigarray-compat cstruct ];
  doCheck = true;

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