anchor.diff:      rm -f $kmod/lib/modules/${kernel.modDirVersion}/build
     '';
   
  +  postInstall = lib.optionalString (withExamples != []) ''
  +    find examples -type f -executable -exec install {} $out/bin \;
  +  '';
  +
     outputs = [ "out" ] ++ lib.optional mod "kmod";
   
     meta = with lib; {
  
positive.code:   ++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni"
    ++ lib.optional (!shared) "-Ddefault_library=static"
    ++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
    ++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";
  
    # dpdk meson script does not support separate kernel source and installion
    # dirs (except via destdir), so we temporarily link the former into the latter.
  
negative.code: , pkg-config, meson, ninja
  , libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap
  , doxygen, python3
  , withExamples ? []
  , shared ? false }:
  
  let
  