tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
onionshare: 2.5 -> 2.6
Louis Bettens
3 years ago
f0957986
91d1eb9f
+23
-17
3 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
onionshare
default.nix
fix-paths-gui.patch
fix-paths.patch
+2
-2
pkgs/applications/networking/onionshare/default.nix
···
26
26
}:
27
27
28
28
let
29
29
-
version = "2.5";
29
29
+
version = "2.6";
30
30
src = fetchFromGitHub {
31
31
owner = "onionshare";
32
32
repo = "onionshare";
33
33
rev = "v${version}";
34
34
-
sha256 = "xCAM+tjjyDg/gqAXr4YNPhM8R3n9r895jktisAGlpZo=";
34
34
+
sha256 = "sha256-LA7XlzoCXUiG/9subTddAd22336wO9sOHCIBlQK4Ga4=";
35
35
};
36
36
meta = with lib; {
37
37
description = "Securely and anonymously send and receive files";
+7
-7
pkgs/applications/networking/onionshare/fix-paths-gui.patch
···
1
1
--- a/onionshare/gui_common.py
2
2
+++ b/onionshare/gui_common.py
3
3
-
@@ -410,52 +410,12 @@ class GuiCommon:
3
3
+
@@ -482,52 +482,12 @@ class GuiCommon:
4
4
}
5
5
6
6
def get_tor_paths(self):
···
29
29
-
30
30
- if self.common.platform == "Windows":
31
31
- base_path = self.get_resource_path("tor")
32
32
-
- tor_path = os.path.join(base_path, "Tor", "tor.exe")
33
33
-
- obfs4proxy_file_path = os.path.join(base_path, "Tor", "obfs4proxy.exe")
34
34
-
- snowflake_file_path = os.path.join(base_path, "Tor", "snowflake-client.exe")
35
35
-
- meek_client_file_path = os.path.join(base_path, "Tor", "meek-client.exe")
36
36
-
- tor_geo_ip_file_path = os.path.join(base_path, "Data", "Tor", "geoip")
37
37
-
- tor_geo_ipv6_file_path = os.path.join(base_path, "Data", "Tor", "geoip6")
32
32
+
- tor_path = os.path.join(base_path, "tor.exe")
33
33
+
- obfs4proxy_file_path = os.path.join(base_path, "obfs4proxy.exe")
34
34
+
- snowflake_file_path = os.path.join(base_path, "snowflake-client.exe")
35
35
+
- meek_client_file_path = os.path.join(base_path, "meek-client.exe")
36
36
+
- tor_geo_ip_file_path = os.path.join(base_path, "geoip")
37
37
+
- tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
38
38
- elif self.common.platform == "Darwin":
39
39
- base_path = self.get_resource_path("tor")
40
40
- tor_path = os.path.join(base_path, "tor")
+14
-8
pkgs/applications/networking/onionshare/fix-paths.patch
···
1
1
--- a/onionshare_cli/common.py
2
2
+++ b/onionshare_cli/common.py
3
3
-
@@ -318,67 +318,12 @@ class Common:
3
3
+
@@ -318,73 +318,12 @@ class Common:
4
4
return path
5
5
6
6
def get_tor_paths(self):
···
18
18
- # In Windows, the Tor binaries are in the onionshare package, not the onionshare_cli package
19
19
- base_path = self.get_resource_path("tor")
20
20
- base_path = base_path.replace("onionshare_cli", "onionshare")
21
21
-
- tor_path = os.path.join(base_path, "Tor", "tor.exe")
21
21
+
- tor_path = os.path.join(base_path, "tor.exe")
22
22
-
23
23
- # If tor.exe isn't there, mayber we're running from the source tree
24
24
- if not os.path.exists(tor_path):
25
25
+
- self.log(
26
26
+
- "Common", "get_tor_paths", f"Cannot find tor.exe at {tor_path}"
27
27
+
- )
25
28
- base_path = os.path.join(os.getcwd(), "onionshare", "resources", "tor")
26
29
-
27
27
-
- tor_path = os.path.join(base_path, "Tor", "tor.exe")
30
30
+
- tor_path = os.path.join(base_path, "tor.exe")
28
31
- if not os.path.exists(tor_path):
32
32
+
- self.log(
33
33
+
- "Common", "get_tor_paths", f"Cannot find tor.exe at {tor_path}"
34
34
+
- )
29
35
- raise CannotFindTor()
30
36
-
31
31
-
- obfs4proxy_file_path = os.path.join(base_path, "Tor", "obfs4proxy.exe")
32
32
-
- snowflake_file_path = os.path.join(base_path, "Tor", "snowflake-client.exe")
33
33
-
- meek_client_file_path = os.path.join(base_path, "Tor", "meek-client.exe")
34
34
-
- tor_geo_ip_file_path = os.path.join(base_path, "Data", "Tor", "geoip")
35
35
-
- tor_geo_ipv6_file_path = os.path.join(base_path, "Data", "Tor", "geoip6")
37
37
+
- obfs4proxy_file_path = os.path.join(base_path, "obfs4proxy.exe")
38
38
+
- snowflake_file_path = os.path.join(base_path, "snowflake-client.exe")
39
39
+
- meek_client_file_path = os.path.join(base_path, "meek-client.exe")
40
40
+
- tor_geo_ip_file_path = os.path.join(base_path, "geoip")
41
41
+
- tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
36
42
-
37
43
- elif self.platform == "Darwin":
38
44
- # Let's see if we have tor binaries in the onionshare GUI package