about summary refs log tree commit diff
path: root/pkgs/tools/security/hashdeep
diff options
context:
space:
mode:
authorThéophile Wallez <theophile@wallez.net>2022-05-14 18:29:58 +0200
committerThéophile Wallez <theophile@wallez.net>2022-05-14 22:53:55 +0200
commit1cf46adf353b3564e7bb5e51f82e0e908541d9a5 (patch)
tree84fc95c60c0b78d948343eb9f2586b010715017f /pkgs/tools/security/hashdeep
parentddfb78791c95019d3d102d9dcb2631112ca7661f (diff)
hashdeep: fix
Diffstat (limited to 'pkgs/tools/security/hashdeep')
-rw-r--r--pkgs/tools/security/hashdeep/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/security/hashdeep/default.nix b/pkgs/tools/security/hashdeep/default.nix
index 0e24e0ec3a397..b981034428630 100644
--- a/pkgs/tools/security/hashdeep/default.nix
+++ b/pkgs/tools/security/hashdeep/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
 
 stdenv.mkDerivation rec {
   pname = "hashdeep";
@@ -11,6 +11,17 @@ stdenv.mkDerivation rec {
     sha256 = "0m2b042ndikavmplv3qjdhfj44hl1h8car83c192xi9nv5ahi7mf";
   };
 
+  patches = [
+    (fetchpatch {
+      # Relevant link: <https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1512>
+      # Defect report fixed in GCC 11
+      # Search for "DR 1512" in <https://gcc.gnu.org/gcc-11/changes.html>
+      name = "fix-cpp-defect-report-1512.patch";
+      url = "https://github.com/jessek/hashdeep/commit/6ef69a26126ee4e69a25392fd456b8a66c51dffd.patch";
+      sha256 = "sha256-IrqcnrKINeoh56FR25FzSM1YJMkM2yFd/GwOeWGRLFo=";
+    })
+  ];
+
   nativeBuildInputs = [ autoreconfHook ];
 
   meta = with lib; {