Merge pull request #205463 from panicgh/tbb

tor-browser-bundle-bin: 11.5.8 -> 12.0.3

authored by

Robert Schütz and committed by
GitHub
a1970c01 2d84e9d6

+11 -10
+11 -10
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
··· 26 , pulseaudioSupport ? mediaSupport 27 , libpulseaudio 28 , apulse 29 30 # Media support (implies audio support) 31 , mediaSupport ? true ··· 57 libPath = lib.makeLibraryPath libPkgs; 58 59 libPkgs = [ 60 atk 61 cairo 62 dbus ··· 85 fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ]; 86 87 # Upstream source 88 - version = "11.5.8"; 89 90 - lang = "en-US"; 91 92 srcs = { 93 x86_64-linux = fetchurl { ··· 97 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz" 98 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz" 99 ]; 100 - sha256 = "sha256-/KK9oTijk5dEziAwp5966NaM2V4k1mtBjTJq88Ct7N0="; 101 }; 102 103 i686-linux = fetchurl { ··· 107 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz" 108 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz" 109 ]; 110 - sha256 = "sha256-TGdJ5yIeo0YQ4XSsb9lv3vuW6qEjhFe7KBmkjYO6fAc="; 111 }; 112 }; 113 in ··· 291 # TBB will fail if ownership is too permissive 292 chmod 0700 "\$HOME/TorBrowser/Data/Tor" 293 294 - # Initialize the browser profile state. Note that the only data 295 - # copied from the Store payload is the initial bookmark file, which is 296 - # never updated once created. All other files under user's profile 297 - # dir are generated by TBB. 298 mkdir -p "\$HOME/TorBrowser/Data/Browser/profile.default" 299 - cp -u --no-preserve=mode,owner "$TBB_IN_STORE/TorBrowser/Data/Browser/profile.default/bookmarks.html" \ 300 - "\$HOME/TorBrowser/Data/Browser/profile.default/bookmarks.html" 301 302 # Clear some files if the last known store path is different from the new one 303 : "\''${KNOWN_STORE_PATH:=\$HOME/known-store-path}" ··· 324 # Font cache files capture store paths; clear them out on the off 325 # chance that TBB would continue using old font files. 326 rm -rf "\$HOME/.cache/fontconfig" 327 328 # Manually specify data paths (by default TB attempts to create these in the store) 329 {
··· 26 , pulseaudioSupport ? mediaSupport 27 , libpulseaudio 28 , apulse 29 + , alsa-lib 30 31 # Media support (implies audio support) 32 , mediaSupport ? true ··· 58 libPath = lib.makeLibraryPath libPkgs; 59 60 libPkgs = [ 61 + alsa-lib 62 atk 63 cairo 64 dbus ··· 87 fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ]; 88 89 # Upstream source 90 + version = "12.0.3"; 91 92 + lang = "ALL"; 93 94 srcs = { 95 x86_64-linux = fetchurl { ··· 99 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz" 100 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz" 101 ]; 102 + hash = "sha256-bOGY/RdwD6O7QIuOiBw7OVnZfpumGGso6hwMJJwN2g0="; 103 }; 104 105 i686-linux = fetchurl { ··· 109 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz" 110 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz" 111 ]; 112 + hash = "sha256-t1tnEZtiRig2r8GNJpqT+J0XoxCLMyUsI9tX6aa0lYk="; 113 }; 114 }; 115 in ··· 293 # TBB will fail if ownership is too permissive 294 chmod 0700 "\$HOME/TorBrowser/Data/Tor" 295 296 + # Initialize the browser profile state. 297 + # All files under user's profile dir are generated by TBB. 298 mkdir -p "\$HOME/TorBrowser/Data/Browser/profile.default" 299 300 # Clear some files if the last known store path is different from the new one 301 : "\''${KNOWN_STORE_PATH:=\$HOME/known-store-path}" ··· 322 # Font cache files capture store paths; clear them out on the off 323 # chance that TBB would continue using old font files. 324 rm -rf "\$HOME/.cache/fontconfig" 325 + 326 + # Workaround a bug in 12.0.X that Tor directories are not cleaned up and tor gets confused where its socket is 327 + rm -rf \$XDG_RUNTIME_DIR/Tor* 328 329 # Manually specify data paths (by default TB attempts to create these in the store) 330 {