2021-01-11 05:14:57 -08:00
|
|
|
{ lib, fetchurl, buildDunePackage, bigarray-compat, cstruct }:
|
2015-01-23 00:15:08 -08:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hex";
|
2020-10-27 22:31:05 -07:00
|
|
|
version = "1.4.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2017-12-04 21:51:44 -08:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
minimumOCamlVersion = "4.02";
|
2015-01-23 00:15:08 -08:00
|
|
|
|
2017-12-04 21:51:44 -08:00
|
|
|
src = fetchurl {
|
2019-02-10 06:44:58 -08:00
|
|
|
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-v${version}.tbz";
|
2020-10-27 22:31:05 -07:00
|
|
|
sha256 = "07b9y0lmnflsslkrm6xilkj40n8sf2hjqkyqghnk7sw5l0plkqsp";
|
2015-01-23 00:15:08 -08:00
|
|
|
};
|
|
|
|
|
2020-10-27 22:31:05 -07:00
|
|
|
propagatedBuildInputs = [ bigarray-compat cstruct ];
|
2015-12-15 13:02:15 -08:00
|
|
|
doCheck = true;
|
2015-01-23 00:15:08 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mininal OCaml library providing hexadecimal converters";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/mirage/ocaml-hex";
|
2021-01-11 04:49:15 -08:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-01-23 00:15:08 -08:00
|
|
|
};
|
|
|
|
}
|