2019-12-29 19:40:36 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-06-25 21:22:21 +00:00
|
|
|
, ppx_sexp_conv, ounit
|
2019-12-29 19:40:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "macaddr";
|
2021-09-29 12:28:09 +00:00
|
|
|
version = "5.2.0";
|
2019-12-29 19:40:36 +00:00
|
|
|
|
2020-11-19 06:36:38 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-12-29 19:40:36 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-24 13:13:39 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-v${version}.tbz";
|
2021-09-29 12:28:09 +00:00
|
|
|
sha256 = "f98d237cc1f783a0ba7dff0c6c69b5f519fec056950e3e3e7c15e5511ee5b7ec";
|
2019-12-29 19:40:36 +00:00
|
|
|
};
|
|
|
|
|
2020-06-25 21:22:21 +00:00
|
|
|
checkInputs = [ ppx_sexp_conv ounit ];
|
|
|
|
doCheck = true;
|
2019-12-29 19:40:36 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mirage/ocaml-ipaddr";
|
2019-12-29 19:40:36 +00:00
|
|
|
description = "A library for manipulation of MAC address representations";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
|
|
};
|
|
|
|
}
|