anchor.diff:    unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner";
   
     installPhase = ''
  +      runHook preInstall
  +
         mkdir -p $out $out/bin
   
         cp -R usr/share $out
  
positive.code:       # Replace xdg-settings and xdg-mime
        ln -sf ${xdg-utils}/bin/xdg-settings $out/opt/brave.com/brave/xdg-settings
        ln -sf ${xdg-utils}/bin/xdg-mime $out/opt/brave.com/brave/xdg-mime
    '';
  
    installCheckPhase = ''
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "brave";
    version = "1.24.82";
  
    src = fetchurl {
      url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
      sha256 = "iWUJ5yLWWQvg510Atf+Pd9ya/1NnMNW2Sp/RVFn4PCc=";
    };
  
    dontConfigure = true;
  