anchor.diff:    # relative location where the dropbox libraries are stored
     appdir = "opt/dropbox";
   
  -  ldpath = stdenv.lib.makeLibraryPath
  +  libs =
       [
         dbus_libs fontconfig freetype gcc.cc glib libdrm libffi libICE libSM
         libX11 libXcomposite libXext libXmu libXrender libxcb libxml2 libxslt
  
positive.code: let
    # NOTE: When updating, please also update in current stable,
    # as older versions stop working
    version = "28.4.14";
    sha256 =
      {
        "x86_64-linux" = "02pfly33bg85c8y3igvkhyshra8ra089ghjibhzl1a4fmd45wf52";
        "i686-linux"   = "10swkjbzkyf19cilzw7ja6byla4dllr52pbz19wjzb8rv088gcla";
      }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
  
    arch =
  
negative.code:   sourceRoot = ".dropbox-dist";
  
    nativeBuildInputs = [ makeWrapper patchelf ];
    buildInputs = libs;
    dontStrip = true; # already done
  
    installPhase = ''
      runHook preInstall
  
      mkdir -p "$out/${appdir}"
      cp -r --no-preserve=mode "dropbox-lnx.${arch}-${version}"/* "$out/${appdir}/"
  
  