anchor.diff:          # For manpages, in case the program supplies them
           mkdir -p $out/nix-support
           echo ${browser} > $out/nix-support/propagated-user-env-packages
  +
  +
  +        #########################
  +        #                       #
  +        #   EXTRA PREF CHANGES  #
  +        #                       #
  +        #########################
  +        # user customization
  +        mkdir -p $out/lib/${firefoxLibName}
  +
  +        # creating policies.json
  +        mkdir -p "$out/lib/${firefoxLibName}/distribution"
  +
  +        POL_PATH="$out/lib/${firefoxLibName}/distribution/policies.json"
  +        rm -f "$POL_PATH"
  +        cat ${policiesJson} >> "$POL_PATH"
  +
  +        # preparing for autoconfig
  +        mkdir -p "$out/lib/${firefoxLibName}/defaults/pref"
  +
  +        cat > "$out/lib/${firefoxLibName}/defaults/pref/autoconfig.js" <<EOF
  +          pref("general.config.filename", "mozilla.cfg");
  +          pref("general.config.obscure_value", 0);
  +        EOF
  +
  +        cat > "$out/lib/${firefoxLibName}/mozilla.cfg" < ${mozillaCfg}
  +
  +        mkdir -p $out/lib/${firefoxLibName}/distribution/extensions
  +
  +        for i in ${toString extensions}; do
  +          ln -s -t $out/lib/${firefoxLibName}/distribution/extensions $i/*
  +        done
  +        #############################
  +        #                           #
  +        #   END EXTRA PREF CHANGES  #
  +        #                           #
  +        #############################
         '';
   
         preferLocalBuild = true;
  
positive.code:     , forceWayland ? false
      , useGlvnd ? true
      , cfg ? config.${browserName} or {}
      }:
  
      assert forceWayland -> (browser ? gtk3); # Can only use the wayland backend if gtk3 is being used
  
negative.code:       nativeBuildInputs = [ makeWrapper lndir ];
        buildInputs = lib.optional (browser ? gtk3) browser.gtk3;
  
  
        buildCommand = lib.optionalString stdenv.isDarwin ''
          mkdir -p $out/Applications
          cp -R --no-preserve=mode,ownership ${browser}/Applications/${browserName}.app $out/Applications
  