bulk_extractor: fix build, move off of Python310

This commit is contained in:
Diego
2026-02-14 19:22:39 +01:00
parent e99a3306e1
commit 2df2932c29
+11 -6
View File
@@ -10,7 +10,7 @@
openssl,
zlib,
pkg-config,
python310,
python3,
re2,
}:
@@ -26,10 +26,19 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
# Fix gcc15 build failures due to missing <cstdint>
# Tracking: https://github.com/NixOS/nixpkgs/issues/475479
postPatch = ''
sed -i '1i #include <cstdint>' src/exif_entry.h
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/be20_api/feature_recorder_set.cpp --replace-fail '#warn ' '#warning '
'';
enableParallelBuilding = true;
nativeBuildInputs = [
pkg-config
python310
python3
autoreconfHook
];
buildInputs = [
@@ -48,10 +57,6 @@ stdenv.mkDerivation (finalAttrs: {
aclocal -I m4
'';
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/be20_api/feature_recorder_set.cpp --replace-fail '#warn ' '#warning '
'';
meta = {
description = "Digital forensics tool for extracting information from file systems";
longDescription = ''