···26, pulseaudioSupport ? mediaSupport
27, libpulseaudio
28, apulse
02930# Media support (implies audio support)
31, mediaSupport ? true
···57 libPath = lib.makeLibraryPath libPkgs;
5859 libPkgs = [
060 atk
61 cairo
62 dbus
···85 fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ];
8687 # Upstream source
88- version = "11.5.8";
8990- lang = "en-US";
9192 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 };
102103 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 };
113in
···291 # TBB will fail if ownership is too permissive
292 chmod 0700 "\$HOME/TorBrowser/Data/Tor"
293294- # 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"
301302 # 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"
000327328 # 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
3031# Media support (implies audio support)
32, mediaSupport ? true
···58 libPath = lib.makeLibraryPath libPkgs;
5960 libPkgs = [
61+ alsa-lib
62 atk
63 cairo
64 dbus
···87 fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ];
8889 # Upstream source
90+ version = "12.0.3";
9192+ lang = "ALL";
9394 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 };
104105 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 };
115in
···293 # TBB will fail if ownership is too permissive
294 chmod 0700 "\$HOME/TorBrowser/Data/Tor"
295296+ # Initialize the browser profile state.
297+ # All files under user's profile dir are generated by TBB.
00298 mkdir -p "\$HOME/TorBrowser/Data/Browser/profile.default"
00299300 # 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*
328329 # Manually specify data paths (by default TB attempts to create these in the store)
330 {