diff --git a/pkgs/applications/networking/onionshare/default.nix b/pkgs/applications/networking/onionshare/default.nix index 2b7c19ae1710..369cd7e33850 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 000000000000..97ee3817ab68 --- /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 +