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";
|
2020-09-30 16:35:45 +01:00
|
|
|
version = "5.0.1";
|
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 {
|
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/archive/v${version}.tar.gz";
|
2020-09-30 16:35:45 +01:00
|
|
|
sha256 = "0ffqkhmnj8l085xgl7jxhs3ld9zsd9iavdg06nnhr1i9g1aayk1b";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|