lol

Net::Amazon::S3: Shut up a big fat warning during Hydra startup

+28 -1
+25
pkgs/development/perl-modules/net-amazon-s3-moose-warning.patch
··· 1 + https://github.com/pfig/net-amazon-s3/pull/42 2 + 3 + From 116d73235d8243ec4427e6d7bf1f14f7fb9129aa Mon Sep 17 00:00:00 2001 4 + From: Jay Hannah <jay.hannah@iinteractive.com> 5 + Date: Thu, 8 May 2014 02:29:14 +0000 6 + Subject: [PATCH] Patch for current versions of Moose: "Passing a list of 7 + values to enum is deprecated. Enum values should be wrapped in an arrayref." 8 + 9 + --- 10 + lib/Net/Amazon/S3/Client/Object.pm | 2 +- 11 + 1 file changed, 1 insertion(+), 1 deletion(-) 12 + 13 + diff --git a/lib/Net/Amazon/S3/Client/Object.pm b/lib/Net/Amazon/S3/Client/Object.pm 14 + index 08e48c6..106f2fd 100755 15 + --- a/lib/Net/Amazon/S3/Client/Object.pm 16 + +++ b/lib/Net/Amazon/S3/Client/Object.pm 17 + @@ -16,7 +16,7 @@ enum 'AclShort' => 18 + [ qw(private public-read public-read-write authenticated-read) ]; 19 + 20 + enum 'StorageClass' => 21 + - qw(standard reduced_redundancy); 22 + + [ qw(standard reduced_redundancy) ]; 23 + 24 + has 'client' => 25 + ( is => 'ro', isa => 'Net::Amazon::S3::Client', required => 1 );
+3 -1
pkgs/top-level/perl-packages.nix
··· 6553 6553 propagatedBuildInputs = [ DataStreamBulk DateTimeFormatHTTP DigestHMAC DigestMD5File FileFindRule HTTPDate HTTPMessage LWPUserAgentDetermined MIMETypes Moose MooseXStrictConstructor MooseXTypesDateTimeMoreCoercions PathClass RegexpCommon TermEncoding TermProgressBarSimple URI XMLLibXML JSON ]; 6554 6554 # See https://github.com/pfig/net-amazon-s3/pull/25 6555 6555 patches = 6556 - [ ../development/perl-modules/net-amazon-s3-credentials-provider.patch ]; 6556 + [ ../development/perl-modules/net-amazon-s3-credentials-provider.patch 6557 + ../development/perl-modules/net-amazon-s3-moose-warning.patch 6558 + ]; 6557 6559 meta = { 6558 6560 description = "Use the Amazon S3 - Simple Storage Service"; 6559 6561 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];