2022-05-18 14:49:53 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hashdeep";
|
|
|
|
version = "4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jessek";
|
|
|
|
repo = "hashdeep";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0m2b042ndikavmplv3qjdhfj44hl1h8car83c192xi9nv5ahi7mf";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
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=";
|
|
|
|
})
|
2022-09-09 14:08:57 +00:00
|
|
|
(fetchpatch {
|
|
|
|
# Fix the spacing between the string literals and macros, see https://github.com/jessek/hashdeep/pull/385
|
|
|
|
name = "string-literal-spacing.patch";
|
|
|
|
url = "https://github.com/jessek/hashdeep/commit/18a6b5d57f7a648d2b7dcc6e50ff00a1e4b05fcc.patch";
|
|
|
|
sha256 = "sha256-S6hzC8jPtG3ozsvVq5JfAUMwqKxytLGwBAtNYNr6RJ0=";
|
|
|
|
})
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A set of cross-platform tools to compute hashes";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jessek/hashdeep";
|
|
|
|
license = licenses.gpl2;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = [ maintainers.karantan ];
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|