Unverified Commit 2ba2e438 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

bulk_extractor: fix build, move off of Python310 (#489434)

parents 8469ead7 2df2932c
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -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 = ''