From 96bfa255001fdc39c35ce8a255e2ee1fa8b72478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Wed, 9 Jan 2019 09:17:32 +0100 Subject: [PATCH] libsForQt5.qgpgme: fix tests after 2019-01-06 The keys used in one of the qt tests expired on 2019-01-06 breaking the build. closes https://github.com/NixOS/nixpkgs/issues/53632 --- pkgs/development/libraries/gpgme/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 44086538cd0..0e4ef72b8aa 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan , file, which, ncurses -, autoreconfHook +, autoreconfHook, fetchpatch , git , texinfo , qtbase ? null @@ -31,6 +31,14 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ file pkgconfig gnupg autoreconfHook git texinfo ] ++ lib.optionals pythonSupport [ python swig2 which ncurses ]; + patches = [ + (fetchpatch { + name = "fix-key-expiry.patch"; + url = "https://files.gnupg.net/file/data/fehgbjmataj5tc2pnfhj/PHID-FILE-aqck6l4elhw53tjanrie/file"; + sha256 = "1h80m045gy7r0g7dzzlfpql6p065x88p274ij9jnf7d4lwwgrf1a"; + }) + ]; + postPatch ='' substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file '';