about summary refs log tree commit diff
path: root/pkgs/development/perl-modules
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-12-10 01:37:27 +0100
committerDomen Kožar <domen@dev.si>2014-12-10 01:38:00 +0100
commit0fcef83b0dd4aab6726e5f381af4d12b3c361266 (patch)
treea5dd3521a1a73252aef0d8e66d35fc77754cb7a2 /pkgs/development/perl-modules
parent7930abd1a5db6a4d72d15798ba086bc0cc850c7f (diff)
downloadnixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar.gz
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar.bz2
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar.lz
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar.xz
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.tar.zst
nixlib-0fcef83b0dd4aab6726e5f381af4d12b3c361266.zip
fix a bunch of perl modules
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r--pkgs/development/perl-modules/MooseXAttributeHelpers-perl-5.20.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/MooseXAttributeHelpers-perl-5.20.patch b/pkgs/development/perl-modules/MooseXAttributeHelpers-perl-5.20.patch
new file mode 100644
index 000000000000..161f79a637be
--- /dev/null
+++ b/pkgs/development/perl-modules/MooseXAttributeHelpers-perl-5.20.patch
@@ -0,0 +1,33 @@
+diff --git a/t/003_basic_hash.t b/t/003_basic_hash.t
+index 1f842ae..c21ac52 100644
+--- a/t/003_basic_hash.t
++++ b/t/003_basic_hash.t
+@@ -170,10 +170,10 @@ is_deeply($options->provides, {
+ is($options->type_constraint->type_parameter, 'Str', '... got the right container type');
+ 
+ $stuff->set_option( oink => "blah", xxy => "flop" );
+-my @key_value = $stuff->key_value;
++my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value;
+ is_deeply(
+     \@key_value,
+-    [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
++    [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
+     '... got the right key value pairs'
+ );
+ 
+diff --git a/t/203_trait_hash.t b/t/203_trait_hash.t
+index 8e876b1..451c0bb 100644
+--- a/t/203_trait_hash.t
++++ b/t/203_trait_hash.t
+@@ -156,10 +156,10 @@ is_deeply($options->provides, {
+ is($options->type_constraint->type_parameter, 'Str', '... got the right container type');
+ 
+ $stuff->set_option( oink => "blah", xxy => "flop" );
+-my @key_value = $stuff->key_value;
++my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value;
+ is_deeply(
+     \@key_value,
+-    [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
++    [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
+     '... got the right key value pairs'
+ );