-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump binwalk to v3 #350300
Labels
0.kind: enhancement
Add something new
6.topic: rust
9.needs: package (update)
This needs a package to be updated
Comments
This works so far: {
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
fontconfig,
bzip2,
}:
rustPlatform.buildRustPackage rec {
pname = "binwalk";
version = "3.1.0";
src = fetchFromGitHub {
owner = "ReFirmLabs";
repo = "binwalk";
rev = "4c71ce48bda3c8f0214d56ad6c18c3a833a8dd29";
hash = "sha256-5RgjspfTiiLyIyxr9BEHSlmjlWP02MKuSkMlQS482/E=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
fontconfig.dev
bzip2.out
];
# skip broken tests
checkFlags = [
"--skip=binwalk::Binwalk"
"--skip=binwalk::Binwalk::analyze"
"--skip=binwalk::Binwalk::extract"
"--skip=binwalk::Binwalk::scan"
];
meta = {
description = "Firmware Analysis Tool";
homepage = "https://github.com/ReFirmLabs/binwalk";
changelog = "https://github.com/ReFirmLabs/binwalk/releases/tag/${src.rev}";
license = lib.licenses.mit;
};
} |
@felbinger I've come up with the same solution basically {
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
pkg-config,
fontconfig,
}:
rustPlatform.buildRustPackage rec {
pname = "binwalk-v3";
version = "5ef95bf9b40409a8ea6a9b0c85f52b249a3ef861";
src = fetchFromGitHub {
owner = "ReFirmLabs";
repo = "binwalk";
rev = "${version}";
sha256 = "sha256-XBFo0g4ZJZBWdEr7LwjEq3KHz1wceOCvBE5pt8V+fBg=";
};
cargoHash = "sha256-3DCwnthZEF7DAo5unhQ9WlHcToGUtJDfJrVPxvvmxWc=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fontconfig ];
# skip broken tests
checkFlags = [
"--skip=binwalk::Binwalk"
"--skip=binwalk::Binwalk::analyze"
"--skip=binwalk::Binwalk::extract"
"--skip=binwalk::Binwalk::scan"
];
passthru.tests.can-print-version = [ versionCheckHook ];
meta = {
description = "Firmware Analysis Tool";
homepage = "https://github.com/ReFirmLabs/binwalk";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ alexandru0-dev ];
};
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
0.kind: enhancement
Add something new
6.topic: rust
9.needs: package (update)
This needs a package to be updated
Project description
The firmware analysis tool has been rewritten in rust, according to ReFirmLabs/binwalk#691 the first release will be created in the next days.
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: