Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 ocaml, 6 ppx_sexp_conv, 7 ounit2, 8}: 9 10buildDunePackage rec { 11 pname = "macaddr"; 12 version = "5.6.0"; 13 14 minimalOCamlVersion = "4.04"; 15 16 src = fetchurl { 17 url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-${version}.tbz"; 18 hash = "sha256-njBDP9tMpDemqo/7RHuspeunYV+4jnsM2KS0FsMggTM="; 19 }; 20 21 checkInputs = [ 22 ppx_sexp_conv 23 ounit2 24 ]; 25 doCheck = lib.versionAtLeast ocaml.version "4.08"; 26 27 meta = with lib; { 28 homepage = "https://github.com/mirage/ocaml-ipaddr"; 29 description = "Library for manipulation of MAC address representations"; 30 license = licenses.isc; 31 maintainers = [ maintainers.alexfmpe ]; 32 }; 33}