Skip to content

Commit

Permalink
tor-browser-bundle-bin: additional download urls
Browse files Browse the repository at this point in the history
To better support users that are unable to access the official Tor
distribution site, e.g., #26184

(cherry picked from commit 2262f89)
  • Loading branch information
joachifm committed May 29, 2017
1 parent 3005d25 commit 569742c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/applications/networking/browsers/torbrowser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,18 @@ let

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

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

preferLocalBuild = true;
allowSubstitutes = false;

desktopItem = makeDesktopItem {
name = "torbrowser";
Expand Down

0 comments on commit 569742c

Please sign in to comment.