anchor.diff:    downloadArchiveType = "tar.xz";
     versionUrl = "https://www.sublimemerge.com/${if dev then "dev" else "download"}";
     versionFile = "pkgs/applications/version-management/sublime-merge/default.nix";
  -  usesGtk2 = false;
     archSha256 = sha256;
     arch = "x64";
   
  -  libPath = stdenv.lib.makeLibraryPath [ xorg.libX11 glib (if usesGtk2 then gtk2 else gtk3) cairo pango ];
  -  redirects = [ "/usr/bin/pkexec=${pkexecPath}" ]
  -    ++ stdenv.lib.optional gksuSupport "/usr/bin/gksudo=${gksu}/bin/gksudo";
  +  libPath = stdenv.lib.makeLibraryPath [ xorg.libX11 glib gtk3 cairo pango ];
  +  redirects = [ "/usr/bin/pkexec=${pkexecPath}" ];
   in let
     binaryPackage = stdenv.mkDerivation {
       pname = "${pname}-bin";
  
positive.code: 
      dontStrip = true;
      dontPatchELF = true;
      buildInputs = stdenv.lib.optionals (!usesGtk2) [ glib gtk3 ]; # for GSETTINGS_SCHEMAS_PATH
      nativeBuildInputs = [ makeWrapper ] ++ stdenv.lib.optional (!usesGtk2) wrapGAppsHook;
  
      buildPhase = ''
        runHook preBuild
  
negative.code:         --set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
          --set NIX_REDIRECTS ${builtins.concatStringsSep ":" redirects} \
          --set LOCALE_ARCHIVE "${glibcLocales.out}/lib/locale/locale-archive" \
          "''${gappsWrapperArgs[@]}"
      '';
    };
  in stdenv.mkDerivation (rec {
  