diff options
author | Nick Cao <nickcao@nichi.co> | 2023-07-31 00:21:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-31 00:21:49 -0600 |
commit | 1b1a0d25bb2ba803de410e889ecf450de49912cd (patch) | |
tree | e7b21cbab4485bcfe814902a9b433b120c9ef2cf /pkgs/applications/networking | |
parent | fbacd47118ce596c24cc8bf9c5759a989c7b6799 (diff) | |
parent | 3d6d095d8492c0031271882f815d11f88be549c5 (diff) | |
download | nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar.gz nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar.bz2 nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar.lz nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar.xz nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.tar.zst nixpkgs-1b1a0d25bb2ba803de410e889ecf450de49912cd.zip |
Merge pull request #246108 from gp2112/fix/onionshare-gui
onionshare-gui: add patch to fix qrcode
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/onionshare/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/networking/onionshare/fix-qrcode-gui.patch | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/networking/onionshare/default.nix b/pkgs/applications/networking/onionshare/default.nix index 2b7c19ae171..369cd7e3385 100644 --- a/pkgs/applications/networking/onionshare/default.nix +++ b/pkgs/applications/networking/onionshare/default.nix @@ -124,6 +124,7 @@ rec { inherit tor meek obfs4 snowflake; inherit (tor) geoip; }) + ./fix-qrcode-gui.patch ]; disable = !isPy3k; diff --git a/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch b/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch new file mode 100644 index 00000000000..97ee3817ab6 --- /dev/null +++ b/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch @@ -0,0 +1,14 @@ +diff --git desktop/onionshare/widgets.py desktop/onionshare/widgets.py +index 64a07703..bca974fb 100644 +--- desktop/onionshare/widgets.py ++++ desktop/onionshare/widgets.py +@@ -101,7 +101,7 @@ class Image(qrcode.image.base.BaseImage): + A custom Image class, for use with the QR Code pixmap. + """ + +- def __init__(self, border, width, box_size): ++ def __init__(self, border, width, box_size, *args, **kargs): + self.border = border + self.width = width + self.box_size = box_size + |