Skip to content

Commit

Permalink
perlPackages.EncodeIMAPUTF7: patch to fix build with 540
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Aug 3, 2024
1 parent b9a0ef0 commit 799e770
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/development/perl-modules/encode-imaputf7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/Encode/IMAPUTF7.pm b/lib/Encode/IMAPUTF7.pm
index 07835b9..411c57f 100644
--- a/lib/Encode/IMAPUTF7.pm
+++ b/lib/Encode/IMAPUTF7.pm
@@ -9,6 +9,8 @@ __PACKAGE__->Define('IMAP-UTF-7', 'imap-utf-7');
our $VERSION = '1.05';
use MIME::Base64;
use Encode;
+use Exporter 'import';
+our @EXPORT_OK = qw(encode decode);

#
# Algorithms taken from Unicode::String by Gisle Aas
3 changes: 3 additions & 0 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8789,6 +8789,9 @@ with self; {
description = "IMAP modified UTF-7 encoding";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
patches = [
../development/perl-modules/encode-imaputf7.patch
];
};

EncodeJIS2K = buildPerlPackage {
Expand Down

0 comments on commit 799e770

Please sign in to comment.