about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Brandes <florian.brandes@posteo.de>2023-11-22 10:48:04 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-12-02 07:26:56 +0000
commite970b0bc28f4ece416d6f775205724931819829d (patch)
treeea0c023b0cfab92516784ba302369fc454cbbe34
parent04cf71f77808181f73034f947af731bc198f82dc (diff)
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>
(cherry picked from commit 1e2704927aeb052ede5cedde4b6eb20d424af5d2)
-rw-r--r--pkgs/applications/graphics/gscan2pdf/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/gscan2pdf/default.nix b/pkgs/applications/graphics/gscan2pdf/default.nix
index 98713a4fa4d22..296d63cd6785a 100644
--- a/pkgs/applications/graphics/gscan2pdf/default.nix
+++ b/pkgs/applications/graphics/gscan2pdf/default.nix
@@ -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 =