From f723903b640a88b4a689ddbff5eaac440ae891ba Mon Sep 17 00:00:00 2001 From: KSJ2000 Date: Mon, 13 Jan 2025 11:57:12 +0200 Subject: [PATCH] binwalk: add versionCheckHook --- pkgs/by-name/bi/binwalk/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/bi/binwalk/package.nix b/pkgs/by-name/bi/binwalk/package.nix index 5765c47ef07d..b897fe4a5ba3 100644 --- a/pkgs/by-name/bi/binwalk/package.nix +++ b/pkgs/by-name/bi/binwalk/package.nix @@ -6,6 +6,7 @@ fontconfig, bzip2, stdenv, + versionCheckHook, }: rustPlatform.buildRustPackage rec { @@ -51,6 +52,10 @@ rustPlatform.buildRustPackage rec { "--skip=extractors::common::Chroot::make_executable" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + versionCheckProgramArg = "-V"; + meta = { description = "Firmware Analysis Tool"; homepage = "https://github.com/ReFirmLabs/binwalk";