libical: fix tests with 32-bit time_t

A test added in the latest version fails with 32-bit time_t.
Use the upstream fix until the next version is released.
Fixes pkgsi686Linux.libical and dependers, such as lutris
This commit is contained in:
Ryan Burns 2022-10-15 20:19:00 -07:00
parent 886633ba43
commit 017cc2d4b7

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchurl
, buildPackages
, cmake
, glib
@ -74,6 +75,17 @@ stdenv.mkDerivation rec {
# Will appear in 3.1.0
# https://github.com/libical/libical/issues/350
./respect-env-tzdir.patch
# Fixes tests with 32-bit time_t
# Remove with next version update (v3.0.16+)
(fetchurl {
url = "https://github.com/libical/libical/commit/4adc6f1d2b39a1cc3363b57215e12fa81076498b.patch";
sha256 = "1k3hav0z86kc1xd1sk23b57aqqjk4gf73574w7f1m66cyz98bxr3";
})
(fetchurl {
url = "https://github.com/libical/libical/commit/cce20bd051408b00521385c0bfb616ba068450d3.patch";
sha256 = "097hqmagl0q5p38r1kvx0592cfac2y7jbdqlis6m8gbs812pbqfc";
})
];
# Using install check so we do not have to manually set