Files
nixpkgs/pkgs/development/ocaml-modules/macaddr/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
713 B
Nix

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