diff --git a/pkgs/by-name/bu/bulk_extractor/package.nix b/pkgs/by-name/bu/bulk_extractor/package.nix index d15f4eaeedb1..563b908400c9 100644 --- a/pkgs/by-name/bu/bulk_extractor/package.nix +++ b/pkgs/by-name/bu/bulk_extractor/package.nix @@ -7,34 +7,50 @@ , libewf , libxml2 , openssl -, tre , zlib +, pkg-config +, python310 +, re2 }: stdenv.mkDerivation (finalAttrs: { pname = "bulk_extractor"; - version = "2.0.6"; + version = "2.1.1"; src = fetchFromGitHub { owner = "simsong"; repo = "bulk_extractor"; rev = "v${finalAttrs.version}"; - hash = "sha256-LNdRN4pEA0rVEyKiBKGJgTKA4veVvsuP3ufiolHTk/s="; + hash = "sha256-Jj/amXESFBu/ZaiIRlDKmtWTBVQ2TEvOM2jBYP3y1L8="; fetchSubmodules = true; }; enableParallelBuilding = true; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + pkg-config + python310 + autoreconfHook + ]; buildInputs = [ exiv2 flex libewf libxml2 openssl - tre zlib + re2 ]; + preAutoreconf = '' + python3 etc/makefile_builder.py + autoheader -f + aclocal -I m4 + ''; + + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace src/be20_api/feature_recorder_set.cpp --replace-fail '#warn ' '#warning ' + ''; + meta = with lib; { description = "A digital forensics tool for extracting information from file systems"; longDescription = ''