···2626, pulseaudioSupport ? mediaSupport
2727, libpulseaudio
2828, apulse
2929+, alsa-lib
29303031# Media support (implies audio support)
3132, mediaSupport ? true
···5758 libPath = lib.makeLibraryPath libPkgs;
58595960 libPkgs = [
6161+ alsa-lib
6062 atk
6163 cairo
6264 dbus
···8587 fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ];
86888789 # Upstream source
8888- version = "11.5.8";
9090+ version = "12.0.3";
89919090- lang = "en-US";
9292+ lang = "ALL";
91939294 srcs = {
9395 x86_64-linux = fetchurl {
···9799 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
98100 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
99101 ];
100100- sha256 = "sha256-/KK9oTijk5dEziAwp5966NaM2V4k1mtBjTJq88Ct7N0=";
102102+ hash = "sha256-bOGY/RdwD6O7QIuOiBw7OVnZfpumGGso6hwMJJwN2g0=";
101103 };
102104103105 i686-linux = fetchurl {
···107109 "https://tor.eff.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
108110 "https://tor.calyxinstitute.org/dist/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
109111 ];
110110- sha256 = "sha256-TGdJ5yIeo0YQ4XSsb9lv3vuW6qEjhFe7KBmkjYO6fAc=";
112112+ hash = "sha256-t1tnEZtiRig2r8GNJpqT+J0XoxCLMyUsI9tX6aa0lYk=";
111113 };
112114 };
113115in
···291293 # TBB will fail if ownership is too permissive
292294 chmod 0700 "\$HOME/TorBrowser/Data/Tor"
293295294294- # Initialize the browser profile state. Note that the only data
295295- # copied from the Store payload is the initial bookmark file, which is
296296- # never updated once created. All other files under user's profile
297297- # dir are generated by TBB.
296296+ # Initialize the browser profile state.
297297+ # All files under user's profile dir are generated by TBB.
298298 mkdir -p "\$HOME/TorBrowser/Data/Browser/profile.default"
299299- cp -u --no-preserve=mode,owner "$TBB_IN_STORE/TorBrowser/Data/Browser/profile.default/bookmarks.html" \
300300- "\$HOME/TorBrowser/Data/Browser/profile.default/bookmarks.html"
301299302300 # Clear some files if the last known store path is different from the new one
303301 : "\''${KNOWN_STORE_PATH:=\$HOME/known-store-path}"
···324322 # Font cache files capture store paths; clear them out on the off
325323 # chance that TBB would continue using old font files.
326324 rm -rf "\$HOME/.cache/fontconfig"
325325+326326+ # Workaround a bug in 12.0.X that Tor directories are not cleaned up and tor gets confused where its socket is
327327+ rm -rf \$XDG_RUNTIME_DIR/Tor*
327328328329 # Manually specify data paths (by default TB attempts to create these in the store)
329330 {