anchor.diff: -{ stdenv, fetchurl, makeDesktopItem, makeWrapper
  +{ stdenv, fetchurl, makeDesktopItem, makeWrapper, autoPatchelfHook
   , xorg, gtk2, atk, glib, pango, gdk_pixbuf, cairo, freetype, fontconfig
   , gnome2, dbus, nss, nspr, alsaLib, cups, expat, udev, libnotify, xdg_utils }:
   
  
positive.code:          else "ia32";
  
    version = "4.0.4";
  
    runtimeDeps = [
      udev libnotify
    ];
    deps = (with xorg; [
      libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes
      libXrender libX11 libXtst libXScrnSaver
    ]) ++ [
      gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
      gnome2.GConf nss nspr alsaLib cups expat stdenv.cc.cc
    ] ++ runtimeDeps;
  
    desktopItem = makeDesktopItem rec {
      name = "Franz";
  
negative.code:   # don't remove runtime deps
    dontPatchELF = true;
  
    nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
    buildInputs = (with xorg; [
      libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes
      libXrender libX11 libXtst libXScrnSaver
    ]) ++ [
      gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
      gnome2.GConf nss nspr alsaLib cups expat stdenv.cc.cc
    ];
    runtimeDependencies = [ udev.lib libnotify ];
  
    unpackPhase = ''
      tar xzf $src
    '';
  
    installPhase = ''
      mkdir -p $out/bin $out/opt/franz
      cp -r * $out/opt/franz
      ln -s $out/opt/franz/Franz $out/bin
  