depot/third_party/nixpkgs/pkgs/development/ocaml-modules/macaddr/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

25 lines
693 B
Nix

{ lib, fetchurl, buildDunePackage, ocaml
, ppx_sexp_conv, ounit2
}:
buildDunePackage rec {
pname = "macaddr";
version = "5.5.0";
minimalOCamlVersion = "4.04";
src = fetchurl {
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-${version}.tbz";
hash = "sha256-YokLMW4DV5KtKa8a2XFFbRDe/VJbdLU9sbZ/pCN1wXg=";
};
checkInputs = [ ppx_sexp_conv ounit2 ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/mirage/ocaml-ipaddr";
description = "Library for manipulation of MAC address representations";
license = licenses.isc;
maintainers = [ maintainers.alexfmpe ];
};
}