anchor.diff:      libXext
       libXcursor
       libXi
  +    libxcb
       glib
       libXScrnSaver
       libxkbfile
  
positive.code: { stdenv, lib, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib
  , libXfixes, atk, gtk2, libXrender, pango, gnome2, cairo, freetype, fontconfig
  , libX11, libXi, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
  , nss, nspr, cups, fetchurl, expat, gdk_pixbuf, libXdamage, libXrandr, dbus
  , dpkg, makeDesktopItem
  }:
  
negative.code: 
    buildInputs = [ dpkg ];
  
    unpackPhase = "true";
    buildCommand = ''
      mkdir -p $out
      dpkg -x $src $out
      substituteInPlace $out/usr/share/applications/gitkraken.desktop \
        --replace /usr/share/gitkraken $out/bin
      cp -av $out/usr/* $out
      rm -rf $out/etc $out/usr $out/share/lintian
      chmod -R g-w $out
  
      for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
        patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
        patchelf --set-rpath ${libPath}:$out/share/gitkraken $file || true
      done
  
      find $out/share/gitkraken -name "*.node" -exec patchelf --set-rpath "${libPath}:$out/share/gitkraken" {} \;
  
      rm $out/bin/gitkraken
      ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
    '';
  
    meta = {
  