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