Skip to content

Commit

Permalink
binwalk: add missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KSJ2000 committed Jan 15, 2025
1 parent f723903 commit a816427
Showing 1 changed file with 62 additions and 7 deletions.
69 changes: 62 additions & 7 deletions pkgs/by-name/bi/binwalk/package.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 =
Expand Down Expand Up @@ -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";
};
}

0 comments on commit a816427

Please sign in to comment.