Skip to content
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

Merged
merged 2 commits into from May 4, 2020
Merged

onionshare: init at 2.2 #85765

merged 2 commits into from May 4, 2020

Conversation

bbjubjub2494
Copy link
Member

Motivation for this change

Meet #83029

Things done
  • Add derivation
  • Add myself as maintainer
  • Link derivation in pkgs/top-level
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Comment on lines 72 to 77
patches = [ ./fix-paths.patch ];

# replace @tor@, @obfs4@, @geoip@ w/ store paths.
inherit tor obfs4;
inherit (tor) geoip;
postPatch = "substituteAllInPlace onionshare/common.py";
Copy link
Member

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.

Suggested change
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;
})
];

Copy link
Member Author

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@.

Copy link
Member Author

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?

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha

@emmanuelrosa
Copy link
Contributor

It worked for me.

@Br1ght0ne
Copy link
Member

Br1ght0ne commented Apr 23, 2020

Successfully shared a file. Didn't test GUI.

Result of nixpkgs-review pr 85765 1

2 packages built:
- onionshare
- onionshare-gui

Copy link
Member

@cole-h cole-h left a 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.

@ehmry ehmry merged commit dd5d696 into NixOS:master May 4, 2020
@bbjubjub2494 bbjubjub2494 deleted the init_onionshare branch May 4, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants