anchor.diff:  
     preConfigure = ''
       patchShebangs scripts/
  -  ''
  -    + stdenv.lib.optionalString doInstallCheck (exportLuaPathsFor [ lua.cqueues lua.basexx ]);
  +  '';
   
     nativeBuildInputs = [ pkgconfig meson ninja ];
   
  
positive.code:   '';
  
    doInstallCheck = with stdenv; hostPlatform == buildPlatform;
    installCheckInputs = [ cmocka which cacert ];
    installCheckPhase = ''
      meson test --print-errorlogs
    '';
  
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
  