anchor.diff:    '';
   
     doInstallCheck = with stdenv; hostPlatform == buildPlatform;
  -  installCheckInputs = [ cmocka which cacert ];
  +  installCheckInputs = [ cmocka which cacert lua.cqueues lua.basexx ];
     installCheckPhase = ''
       meson test --print-errorlogs
     '';
  
positive.code: 
  result = if extraFeatures then wrapped-full else unwrapped;
  
  inherit (stdenv.lib) optional optionals concatStringsSep;
  lua = luajitPackages;
  
  # FIXME: remove these usages once resolving
  # https://github.com/NixOS/nixpkgs/pull/63108#issuecomment-508670438
  exportLuaPathsFor = luaPkgs: ''
    export LUA_PATH='${ concatStringsSep ";" (map lua.getLuaPath  luaPkgs)}'
    export LUA_CPATH='${concatStringsSep ";" (map lua.getLuaCPath luaPkgs)}'
  '';
  
  unwrapped = stdenv.mkDerivation rec {
    pname = "knot-resolver";
  
negative.code:     echo "Checking that 'http' module loads, i.e. lua search paths work:"
      echo "modules.load('http')" > test-http.lua
      echo -e 'quit()' | env -i "$out"/bin/kresd -a 127.0.0.1#53535 -c test-http.lua
    '';
  
  in result
  