git.iko.soy/typeable/nixpkgs
on master help sign in
perlPackages.DBIxClass: Add upstream patch to fix build

Apply an upstream commit destined for next release like Debian is doing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835731 Should fix http://hydra.nixos.org/build/40815848

commitc08a84186f7f0145aebc063606bd654fea3efcf9 authorTuomas Tynkkynen <tuomas@tuxera.com> dateMon 19 Sep 2016, 16:32 (10 years ago) parent9c2e6fa
2 files changed+25
pkgs/development/perl-modules/dbiclassx-fix.patch+24 pkgs/top-level/perl-packages.nix+1
pkgs/development/perl-modules/dbiclassx-fix.patchnew file+24
@@ -0,0 +1,24 @@
1+From adcc1df0049e0093cb94c867bd2be8c9fe242a61 Mon Sep 17 00:00:00 2001
2+From: Peter Rabbitson <ribasushi@cpan.org>
3+Date: Tue, 13 Sep 2016 17:15:48 +0200
4+Subject: [PATCH] Fix for upcoming (not yet available via DBD::SQLite)
5+ libsqlite version
6+
7+---
8+ Changes | 2 ++
9+ t/prefetch/grouped.t | 2 +-
10+ 2 files changed, 3 insertions(+), 1 deletion(-)
11+
12+diff --git a/t/prefetch/grouped.t b/t/prefetch/grouped.t
13+index 4aad6b1..c0d2224 100644
14+--- a/t/prefetch/grouped.t
15++++ b/t/prefetch/grouped.t
16+@@ -101,7 +101,7 @@ my @cdids = sort $cd_rs->get_column ('cdid')->all;
17+
18+ # add an extra track to one of the cds, and then make sure we can get it on top
19+ # (check if limit works)
20+- my $top_cd = $cd_rs->slice (1,1)->next;
21++ my $top_cd = $cd_rs->search({}, { order_by => 'cdid' })->slice (1,1)->next;
22+ $top_cd->create_related ('tracks', {
23+ title => 'over the top',
24+ });
pkgs/top-level/perl-packages.nix+1
@@ -3583,6 +3583,7 @@ let self = _self // overrides; _self = with self; {
35833583 url = "mirror://cpan/authors/id/R/RI/RIBASUSHI/${name}.tar.gz";
35843584 sha256 = "4049afd175e315ebcab945b19030aec40bcec46cc5611b0286a5a267ca7181ef";
35853585 };
3586+ patches = [ ../development/perl-modules/dbiclassx-fix.patch ]; # Remove after next release
35863587 buildInputs = [ DBDSQLite PackageStash SQLTranslator TestDeep TestException TestWarn ];
35873588 propagatedBuildInputs = [ ClassAccessorGrouped ClassC3Componentised ClassInspector ConfigAny ContextPreserve DBI DataDumperConcise DataPage DevelGlobalDestruction HashMerge MROCompat ModuleFind Moo PathClass SQLAbstract ScopeGuard SubName TryTiny namespaceclean ];
35883589 meta = {