anchor.diff:  , tor
   , tor-browser-unwrapped
   
  +# Wrapper runtime
  +, coreutils
  +, hicolor_icon_theme
  +, shared_mime_info
   # Extensions, common
   , unzip
   , zip
  
positive.code:       >> defaults/pref/extension-overrides.js
  
      # Generate a suitable wrapper
      mkdir -p $out/bin
      cat >$out/bin/tor-browser <<EOF
      #! ${stdenv.shell} -e
  
      THE_HOME=\$HOME
      TBB_HOME=\''${TBB_HOME:-\''${XDG_DATA_HOME:-$HOME/.local/share}/tor-browser}
      mkdir -p "\$TBB_HOME"
  
      HOME=\$TBB_HOME
      cd "\$HOME"
  
      exec $self/firefox -no-remote about:tor
      EOF
      chmod +x $out/bin/tor-browser
    '';
  
negative.code:     clearPref("extensions.bootstrappedAddons");
  
      // Insist on using IPC for communicating with Tor
      lockPref("extensions.torlauncher.control_port_use_ipc", true);
      lockPref("extensions.torlauncher.socks_port_use_ipc", true);
  
  