2023-03-22 14:10:51 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct }:
|
2015-01-23 09:15:08 +01:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hex";
|
2023-03-22 14:10:51 +01:00
|
|
|
version = "1.5.0";
|
2020-10-28 06:31:05 +01:00
|
|
|
|
2023-03-22 14:10:51 +01:00
|
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.08";
|
2015-01-23 09:15:08 +01:00
|
|
|
|
2017-12-05 06:51:44 +01:00
|
|
|
src = fetchurl {
|
2023-03-22 14:10:51 +01:00
|
|
|
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-${version}.tbz";
|
|
|
|
hash = "sha256-LmfuyhsDBJMHowgxtc1pS8stPn8qa0+1l/vbZHNRtNw=";
|
2015-01-23 09:15:08 +01:00
|
|
|
};
|
|
|
|
|
2023-03-22 14:10:51 +01:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
2015-12-15 22:02:15 +01:00
|
|
|
doCheck = true;
|
2015-01-23 09:15:08 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mininal OCaml library providing hexadecimal converters";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mirage/ocaml-hex";
|
2021-01-11 13:49:15 +01:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-01-23 09:15:08 +01:00
|
|
|
};
|
|
|
|
}
|