anchor.diff:      substituteInPlace $out/share/applications/keybase.desktop \
         --replace run_keybase $out/bin/keybase-gui
     '';
  -  postFixup = ''
  -    patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath "${libPath}:\$ORIGIN" "$out/share/keybase/Keybase"
  -  '';
   
     meta = with stdenv.lib; {
       homepage = https://www.keybase.io/;
  -    description = "The Keybase official GUI.";
  +    description = "The Keybase official GUI";
       platforms = platforms.linux;
       maintainers = with maintainers; [ puffnfresh np ];
       license = licenses.bsd3;
  
positive.code:     xorg.libXi
      xorg.libXrandr
      xorg.libXrender
      xorg.libXScrnSaver
      xorg.libXtst
    ];
  in
  stdenv.mkDerivation rec {
    name = "keybase-gui-${version}";
    version = "2.7.0-20180926133747.0d62c866fc";
    src = fetchurl {
      url = "https://s3.amazonaws.com/prerelease.keybase.io/linux_binaries/deb/keybase_${version}_amd64.deb";
      sha256 = "0a0ax3skfw398vcjl7822qp7160lbll1snwdqsa13dy8qrjl1byp";
    };
    phases = ["unpackPhase" "installPhase" "fixupPhase"];
    unpackPhase = ''
      ar xf $src
      tar xf data.tar.xz
    '';
    installPhase = ''
      mkdir -p $out/bin
      mv usr/share $out/share
  
negative.code:     pango
      systemd
      xorg.libX11
      xorg.libXScrnSaver
      xorg.libXcomposite
      xorg.libXcursor
      xorg.libXdamage
  