gscan2pdf: add patch to remove warnings during test

see https://sourceforge.net/p/gscan2pdf/bugs/421

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2023-11-22 10:48:04 +01:00
parent fe3094b0dc
commit 1e2704927a

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, perlPackages, wrapGAppsHook,
{ lib, fetchurl, perlPackages, wrapGAppsHook, fetchpatch,
# libs
librsvg, sane-backends, sane-frontends,
# runtime dependencies
@ -17,6 +17,15 @@ perlPackages.buildPerlPackage rec {
hash = "sha256-NGz6DUa7TdChpgwmD9pcGdvYr3R+Ft3jPPSJpybCW4Q=";
};
patches = [
# fixes warnings during tests. See https://sourceforge.net/p/gscan2pdf/bugs/421
(fetchpatch {
name = "0001-Remove-given-and-when-keywords-and-operator.patch";
url = "https://sourceforge.net/p/gscan2pdf/bugs/_discuss/thread/602a7cedfd/1ea4/attachment/0001-Remove-given-and-when-keywords-and-operator.patch";
hash = "sha256-JtrHUkfEKnDhWfEVdIdYVlr5b/xChTzsrrPmruLaJ5M=";
})
];
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs =