Skip to content

Commit 2262f89

Browse files
committedMay 28, 2017
tor-browser-bundle-bin: additional download urls
To better support users that are unable to access the official Tor distribution site, e.g., #26184
1 parent 8e507cf commit 2262f89

File tree

1 file changed

+9
-2
lines changed
  • pkgs/applications/networking/browsers/tor-browser-bundle-bin

1 file changed

+9
-2
lines changed
 

‎pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix

+9-2
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,18 @@ let
8787

8888
srcs = {
8989
"x86_64-linux" = fetchurl {
90-
url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz";
90+
urls = [
91+
"https://github.com/TheTorProject/gettorbrowser/releases/download/v${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
92+
"https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
93+
];
9194
sha256 = "0jn98arczlgjigpmql1qg5b7izabv4zy4mji6vvcg3b8g1ma108r";
9295
};
9396

9497
"i686-linux" = fetchurl {
95-
url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz";
98+
urls = [
99+
"https://github.com/TheTorProject/gettorbrowser/releases/download/v${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
100+
"https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
101+
];
96102
sha256 = "0micxgkbys0py4bj6csbc8xz4gq0x5v2zirgi38krnm5x5riqj3w";
97103
};
98104
};
@@ -105,6 +111,7 @@ stdenv.mkDerivation rec {
105111
src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
106112

107113
preferLocalBuild = true;
114+
allowSubstitutes = false;
Has conversations. Original line has conversations.
108115

109116
desktopItem = makeDesktopItem {
110117
name = "torbrowser";

0 commit comments

Comments
 (0)
Please sign in to comment.