anchor.diff:      };
     };
   
  -  desktopItem = makeDesktopItem {
  -    name = "SoulseekQt";
  -    exec = "soulseekqt";
  -    icon = "$out/share/soulseekqt/";
  -    comment = "Official Qt SoulSeek client"; 
  -    desktopName = "SoulseekQt";
  -    genericName = "SoulseekQt";
  -    categories = "Network;";
  -  };
  -
   in stdenv.mkDerivation rec {
   
     name = "soulseekqt-${version}";
  
positive.code: 
    dontBuild = true;
  
    buildInputs = [ pythonPackages.binwalk squashfsTools ];
  
    # avoid usage of appimagetool
    unpackCmd = ''
      export HOME=$(pwd) # workaround for binwalk
      tar xvf $curSrc && binwalk --quiet \
         ${mainbin}.AppImage -D 'squashfs:.squashfs:unsquashfs %e'
      '';
  
    installPhase = ''
      mkdir -p $out/{bin,share/soulseekqt}
      cd squashfs-root/
      cp -R soulseek.png translations $out/share/soulseekqt
      cp SoulseekQt $out/bin/soulseekqt
    '';
  
    fixupPhase = ''
      patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
               --set-rpath ${libPath} \
               $out/bin/soulseekqt
    '';
  
    meta = with stdenv.lib; {
  
negative.code: , qtbase, qtmultimedia
  , libjson, libgpgerror
  , libX11, libxcb, libXau, libXdmcp, freetype, libbsd
  , pythonPackages, squashfsTools, desktop_file_utils
  }:
  
  with stdenv.lib;
  