New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onionshare: init at 2.2 #85765
onionshare: init at 2.2 #85765
Conversation
patches = [ ./fix-paths.patch ]; | ||
|
||
# replace @tor@, @obfs4@, @geoip@ w/ store paths. | ||
inherit tor obfs4; | ||
inherit (tor) geoip; | ||
postPatch = "substituteAllInPlace onionshare/common.py"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work as-is, but please test first... I've been known to make mistakes.
patches = [ ./fix-paths.patch ]; | |
# replace @tor@, @obfs4@, @geoip@ w/ store paths. | |
inherit tor obfs4; | |
inherit (tor) geoip; | |
postPatch = "substituteAllInPlace onionshare/common.py"; | |
patches = [ | |
(substituteAll { | |
src = ./fix-paths.patch; | |
inherit tor obfs4; | |
inherit (tor) geoip; | |
}) | |
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That breaks my code: the patch references @out@
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the goal of your requested change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal is to make it look less cluttered and follow the soft standard of what happens in most other packages.
To deal with @out@
, the best way would be to keep postPatch
, but change it to substituteInPlace onionshare/common.py --subst-var out
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha
21f7deb
to
ffb41f8
Compare
It worked for me. |
Successfully shared a file. Didn't test GUI. Result of 2 packages built:- onionshare - onionshare-gui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Result of nixpkgs-review pr 85765
1
2 packages built:
- onionshare
- onionshare-gui
I ran onionshare-gui
, which connected me to Tor. Clicking the Test connection to Tor
button did what it says on the tin.
Motivation for this change
Meet #83029
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)