diff --git a/pkgs/by-name/bi/binwalk/package.nix b/pkgs/by-name/bi/binwalk/package.nix index b897fe4a5ba3d..6609c60d92359 100644 --- a/pkgs/by-name/bi/binwalk/package.nix +++ b/pkgs/by-name/bi/binwalk/package.nix @@ -1,12 +1,39 @@ { - lib, - rustPlatform, + bzip2, + cabextract, + dmg2img, + dtc, + dumpifs, + enableUnfree ? false, fetchFromGitHub, - pkg-config, fontconfig, - bzip2, + gnutar, + jefferson, + lib, + lzfse, + lzo, + lzop, + lz4, + openssl_3, + pkg-config, + python3, + rustPlatform, + sasquatch, + sleuthkit, + srec2bin, stdenv, + ubi_reader, + ucl, + uefi-firmware-parser, + unrar, + unyaffs, + unzip, versionCheckHook, + vmlinux-to-elf, + xz, + zlib, + zstd, + _7zz, }: rustPlatform.buildRustPackage rec { @@ -24,10 +51,36 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; + # https://github.com/ReFirmLabs/binwalk/commits/master/dependencies buildInputs = [ - fontconfig bzip2 - ]; + cabextract + dmg2img + dtc + dumpifs + fontconfig + gnutar + jefferson + lzfse + lzo + lzop + lz4 + openssl_3 + python3.pkgs.python-lzo + sasquatch + sleuthkit + srec2bin + ubi_reader + ucl + uefi-firmware-parser + unyaffs + unzip + vmlinux-to-elf + xz + zlib + zstd + _7zz + ] ++ lib.optionals enableUnfree [ unrar ]; # skip broken tests checkFlags = @@ -59,11 +112,13 @@ rustPlatform.buildRustPackage rec { meta = { description = "Firmware Analysis Tool"; homepage = "https://github.com/ReFirmLabs/binwalk"; - changelog = "https://github.com/ReFirmLabs/binwalk/releases/tag/${src.rev}"; + changelog = "https://github.com/ReFirmLabs/binwalk/releases/tag/v${version}"; license = lib.licenses.mit; + platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ koral felbinger ]; + mainProgram = "binwalk"; }; }