2019-12-29 19:40:36 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-06-25 22:22:21 +01:00
|
|
|
, ppx_sexp_conv, ounit
|
2019-12-29 19:40:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "macaddr";
|
2021-07-24 14:13:39 +01:00
|
|
|
version = "5.1.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 14:13:39 +01:00
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-v${version}.tbz";
|
|
|
|
sha256 = "7e9328222c1a5f39b0751baecd7e27a842bdb0082fd48126eacbbad8816fbf5a";
|
2019-12-29 19:40:36 +00:00
|
|
|
};
|
|
|
|
|
2020-06-25 22:22:21 +01:00
|
|
|
checkInputs = [ ppx_sexp_conv ounit ];
|
|
|
|
doCheck = true;
|
2019-12-29 19:40:36 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|