anchor.diff:      comment = "The bridge between designers and developers";
     };
   
  -  buildInputs = [ unzip ];
  +  nativeBuildInputs = [makeWrapper];
  +  buildInputs = [ unzip gtk3 gsettings-desktop-schemas];
   
     # src is producing multiple folder on unzip so we must
     # override unpackCmd to extract it into newly created folder
  
positive.code: { stdenv, makeDesktopItem, fetchurl, unzip
  , gdk_pixbuf, glib, gtk2, atk, pango, cairo, freetype, fontconfig, dbus, nss, nspr, alsaLib, cups, expat, udev, gnome2
  , xorg, mozjpeg
  }:
  
  stdenv.mkDerivation rec {
    name = "avocode-${version}";
    version = "3.4.0";
  
    src = fetchurl {
      url = "https://media.avocode.com/download/avocode-app/${version}/avocode-${version}-linux.zip";
      sha256 = "1dk4vgam9r5nl8dvpfwrn52gq6r4zxs4zz63p3c4gk73d8qnh4dl";
    };
  
    libPath = stdenv.lib.makeLibraryPath (with xorg; with gnome2; [
      stdenv.cc.cc.lib
      gdk_pixbuf
      glib
      gtk2
      atk
      pango
      cairo
      freetype
  
negative.code:     for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
        patchelf --set-rpath ${libPath}:$out/ $file
      done
      for file in $out/bin/*; do
        wrapProgram $file \
          --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"
      done
    '';
  
    enableParallelBuilding = true;
  