libpng: always apply the debian patches

This fixes the low-severity CVE on other platforms than aarch64.
This commit is contained in:
Vladimír Čunát 2019-02-19 11:10:00 +01:00
parent 424efc7e71
commit 3a078594a1
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -18,8 +18,7 @@ in stdenv.mkDerivation rec {
url = "mirror://sourceforge/libpng/libpng-${version}.tar.xz";
sha256 = "06d35a3xz2a0kph82r56hqm1fn8fbwrqs07xzmr93dx63x695szc";
};
patches = if !stdenv.hostPlatform.isAarch64 then null # temporarily avoid rebuild
else [
patches = [
(fetchurl { # https://github.com/glennrp/libpng/issues/266
url = "https://salsa.debian.org/debian/libpng1.6/raw/0e1348f3d/debian/patches/272.patch";
sha256 = "1d36khgryq2p27bdx10xrr4kcjr7cdfdj2zhdcjzznpnpns97s6n";