anchor.diff:      ensureDir "$out/bin"
       ln -s "$out/${appdir}/dropbox" "$out/bin/dropbox"
   
  -    patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \
  +    patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \
         "$out/${appdir}/dropbox"
   
  -    RPATH=${ldpath}:${gcc.gcc}/lib64:$out/${appdir}
  +    RPATH=${ldpath}:${gcc.gcc}/lib:$out/${appdir}
       echo "updating rpaths to: $RPATH"
       find "$out/${appdir}" -type f -a -perm +0100 \
         -print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \;
  
positive.code: # replace these libraries with the appropriate ones in
  # nixpkgs.
  
  # note: there is a i686 version available as well
  assert stdenv.system == "x86_64-linux";
  
  let
  
    version = "1.4.21";
    sha256 = "94073842f4a81feee80bca590e1df73fc3cab47ba879407ceba2de48f30d84e2";
  
    # relative location where the dropbox libraries are stored
    appdir = "opt/dropbox";
  
negative.code:     name = "dropbox-${version}.tar.gz";
      # using version-specific URL so if the version is no longer available,
      # build will fail without having to finish downloading first
      # url = "http://www.dropbox.com/download?plat=lnx.${arch}";
      url = "http://dl-web.dropbox.com/u/17/dropbox-lnx.${arch}-${version}.tar.gz";
      inherit sha256;
    };
  
  