feh: Fix right-click buffer overflow crash

This commit is contained in:
Ametov Imil 2023-10-08 01:50:42 +03:00
parent d09cd1d7d1
commit d81ca2b405

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper
{ lib, stdenv, fetchFromGitHub, makeWrapper, fetchpatch
, xorg, imlib2, libjpeg, libpng
, curl, libexif, jpegexiforient, perl
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
@ -14,6 +14,15 @@ stdenv.mkDerivation rec {
hash = "sha256-9NJ6zgQHcFJPmRlqJuCMXcKjLvDPUG+QvKGTJlWvWK4=";
};
patches = [
# upstream PR: https://github.com/derf/feh/pull/723
(fetchpatch {
name = "fix-right-click-buffer-overflow.patch";
url = "https://github.com/derf/feh/commit/2c31f8863b80030e772a529ade519fc2fee4a991.patch";
sha256 = "sha256-sUWS06qt1d1AyGfqKb+1BzZslYxOzur4q0ePEHcTz1g=";
})
];
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ makeWrapper ];