anchor.diff: -{ lib, stdenv, fetchurl, unzip, jre, coreutils, makeDesktopItem }:
  +{ lib, stdenv, fetchurl, unzip, jre, coreutils, makeDesktopItem, copyDesktopItems }:
   
   stdenv.mkDerivation rec {
     pname = "basex";
  -  version = "9.4.3";
  +  version = "9.6.3";
   
     src = fetchurl {
       url = "http://files.basex.org/releases/${version}/BaseX${builtins.replaceStrings ["."] [""] version}.zip";
  -    hash = "sha256-IZhRg2JcYQXQKU/lYZpLLcsSdjZZO+toY5yvk+RKUCY=";
  +    hash = "sha256-OlIAyGUQKrl+Zu79p6cahHpx59zLozGkUDAEvykGN6Y=";
     };
   
  -  nativeBuildInputs = [ unzip ];
  +  nativeBuildInputs = [ unzip copyDesktopItems ];
     buildInputs = [ jre ];
   
  -  desktopItem = makeDesktopItem {
  +  desktopItems = lib.optional (!stdenv.isDarwin) (makeDesktopItem {
       name = "basex";
       exec = "basexgui %f";
       icon = "${./basex.svg}"; # icon copied from Ubuntu basex package
  
positive.code:     '';
      homepage = "https://basex.org/";
      license = licenses.bsd3;
      platforms = platforms.linux;
      maintainers = [ maintainers.bjornfor ];
    };
  }
  
negative.code:                -e "s|echo|${coreutils}/bin/echo|" \
              "$file"
      done
  
      runHook postInstall
    '';
  
    meta = with lib; {
  