anchor.diff: -{ stdenv, fetchurl, makeWrapper
  -, cairo, gdk_pixbuf, glib, gnome2, gtk2, pango, xorg
  +{ stdenv, fetchurl, autoPatchelfHook, makeWrapper, makeDesktopItem
  +, atk, cairo, freetype, gdk_pixbuf, glib, gnome2, gtk2, libGLU_combined, pango, xorg
   , lsb-release }:
   
   let
  
positive.code:     "i686-linux"   = "i686";
    }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
  
  in stdenv.mkDerivation rec {
    name = "anydesk-${version}";
    version = "2.9.4";
  
negative.code:     inherit sha256;
    };
  
    buildInputs = [
      atk cairo gdk_pixbuf glib gtk2 stdenv.cc.cc pango
      gnome2.gtkglext libGLU_combined
    ] ++ (with xorg; [
      libxcb libX11 libXdamage libXext libXfixes libXi libXmu
      libXrandr libXtst
    ]);
  
    nativeBuildInputs = [ makeWrapper ];
  
    installPhase = ''
      runHook preInstall
  
      mkdir -p $out/bin $out/share/{applications,doc/anydesk,icons/hicolor}
      install -m755 anydesk $out/bin/anydesk
      cp changelog copyright README $out/share/doc/anydesk
      cp -r icons/* $out/share/icons/hicolor/
      cp ${desktopItem}/share/applications/*.desktop $out/share/applications
  
      runHook postInstall
    '';
  
    postFixup = ''
      patchelf \
        --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
        --set-rpath "${stdenv.lib.makeLibraryPath buildInputs}" \
        $out/bin/anydesk
  
      wrapProgram $out/bin/anydesk \
        --prefix PATH : ${stdenv.lib.makeBinPath [ lsb-release ]}
  
      substituteInPlace $out/share/applications/*.desktop \
        --subst-var out
    '';
  
    meta = with stdenv.lib; {
      inherit description;
      homepage = http://www.anydesk.com;
      license = licenses.unfree;
      platforms = platforms.linux;
  