2023-05-24 13:37:59 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2023-03-24 00:07:29 +00:00
|
|
|
, ppx_sexp_conv, ounit2
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "macaddr";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "5.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-${version}.tbz";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-WmYpG/cQtF9+lVDs1WIievUZ1f7+iZ2hufsdD1HHNeo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
checkInputs = [ ppx_sexp_conv ounit2 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-ipaddr";
|
|
|
|
description = "A library for manipulation of MAC address representations";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
|
|
};
|
|
|
|
}
|