From 2df2932c29edad15a43c14cd188aa3f93bc4006e Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 11 Feb 2026 16:01:03 +0100 Subject: [PATCH] bulk_extractor: fix build, move off of Python310 --- pkgs/by-name/bu/bulk_extractor/package.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/bu/bulk_extractor/package.nix b/pkgs/by-name/bu/bulk_extractor/package.nix index 46f875dce6f4..0ca619e0431e 100644 --- a/pkgs/by-name/bu/bulk_extractor/package.nix +++ b/pkgs/by-name/bu/bulk_extractor/package.nix @@ -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 + # Tracking: https://github.com/NixOS/nixpkgs/issues/475479 + postPatch = '' + sed -i '1i #include ' 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 = ''