From 89fc959922808de9375b7d7113ee0127cd75b9e9 Mon Sep 17 00:00:00 2001 From: obadz Date: Fri, 2 Sep 2016 17:44:18 +0100 Subject: [PATCH] perlPackages.DBDSQLite: placate DBIxClass test failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … by using an older version of SQLite. Mentioned in #18209 and #18083 --- pkgs/top-level/perl-packages.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 39324e9e96ac..047fc874a022 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -3544,7 +3544,19 @@ let self = _self // overrides; _self = with self; { DBDSQLite = import ../development/perl-modules/DBD-SQLite { inherit stdenv fetchurl buildPerlPackage DBI; - inherit (pkgs) sqlite; + # inherit (pkgs) sqlite; + + # Workaround to address DBIxClass test failure. + # https://rt.cpan.org/Public/Bug/Display.html?id=117271#txn-1662798 + # https://github.com/NixOS/nixpkgs/pull/18083#issuecomment-243408430 + sqlite = pkgs.sqlite.overrideDerivation (_: { + name = "sqlite-3.13.0"; + + src = fetchurl { + url = "http://sqlite.org/2016/sqlite-autoconf-3130000.tar.gz"; + sha256 = "0sq88jbwsk48i41f7m7rkw9xvijq011nsbs7pl49s31inck70yg2"; + }; + }); }; DBDmysql = import ../development/perl-modules/DBD-mysql { @@ -3578,6 +3590,7 @@ let self = _self // overrides; _self = with self; { DBIxClass = buildPerlPackage rec { name = "DBIx-Class-0.082840"; + # UPGRADE Note: Please remove workaround in DBDSQLite above src = fetchurl { url = "mirror://cpan/authors/id/R/RI/RIBASUSHI/${name}.tar.gz"; sha256 = "4049afd175e315ebcab945b19030aec40bcec46cc5611b0286a5a267ca7181ef";