mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
timg: apply patch for CVE-2022-43151
https://github.com/hzeller/timg/issues/92
(cherry picked from commit bbb8622275)
This commit is contained in:
committed by
github-actions[bot]
parent
db4054fdba
commit
8619ea329f
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, graphicsmagick, libjpeg
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, graphicsmagick, libjpeg
|
||||
, ffmpeg, zlib, libexif, openslide }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1gdwg15fywya6k6pajkx86kv2d8k85pmisnq53b02br5i01y4k41";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/hzeller/timg/commit/e9667ea2c811aa9eb399b631aef9bba0d3711834.patch";
|
||||
sha256 = "sha256-xvbOcnKqX52wYZlzm4Be9dz8Rq+n3s2kKPFr0Y0igAU=";
|
||||
name = "CVE-2022-43151.patch";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ graphicsmagick ffmpeg libexif libjpeg openslide zlib ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
Reference in New Issue
Block a user