anchor.diff:    # don't remove runtime deps
     dontPatchELF = true;
   
  -  buildInputs = [ makeWrapper ];
  +  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 = ''
  -    patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" Franz
  -    patchelf --set-rpath "$out/opt/franz:${stdenv.lib.makeLibraryPath deps}" Franz
  -
       mkdir -p $out/bin $out/opt/franz
       cp -r * $out/opt/franz
       ln -s $out/opt/franz/Franz $out/bin
  
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: { 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 }:
  
  