anchor.diff:    '';
   
     mesonFlags = [
  +    "-Dtests=false"
       "-Denable_docs=true"
       "-Denable_kmods=${lib.boolToString mod}"
     ]
  +  # kni kernel driver is currently not compatble with 5.11
  +  ++ 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}";
  
positive.code: 
  let
    mod = kernel != null;
  
  in stdenv.mkDerivation rec {
    name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}";
    version = "20.05";
  
    src = fetchurl {
      url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
      sha256 = "0h0xv2zwb91b9n29afg5ihn06a8q28in64hag2f112kc19f79jj8";
    };
  
    nativeBuildInputs = [
  
negative.code:     pkg-config
      python3
      python3.pkgs.sphinx
      python3.pkgs.pyelftools
    ];
    buildInputs = [
      jansson
  