anchor.diff:      EOF
       chmod +x $out/bin/XMind
   
  -    ln -s ${jre} $out/libexec/jre
  +    ln -s ${jre8} $out/libexec/jre
     '';
   
     meta = with lib; {
  
positive.code:   dontPatchELF = true;
    dontStrip = true;
  
    libPath = lib.makeLibraryPath [ gtk2 libXtst ];
  
    desktopItem = makeDesktopItem {
      name = "XMind";
  
negative.code: { stdenv, lib, fetchzip, fetchurl, gtk3, jre8, libXtst, makeWrapper, makeDesktopItem, runtimeShell }:
  
  stdenv.mkDerivation rec {
    pname = "xmind";
    version = "8-update9";
  
    src = fetchzip {
      url = "https://www.xmind.app/xmind/downloads/${pname}-${version}-linux.zip";
      stripRoot = false;
      sha256 = "9769c4a9d42d3370ed2c2d1bed5a5d78f1fc3dc5bd604b064b56101fc7f90bb4";
    };
  
    srcIcon = fetchurl {
      url = "https://aur.archlinux.org/cgit/aur.git/plain/xmind.png?h=xmind&id=41936c866b244b34d7dfbee373cbb835eed7860b";
      sha256 = "0jxq2fiq69q9ly0m6hx2qfybqad22sl42ciw636071khpqgc885f";
    };
  
  