2014-09-22 19:37:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python, wrapPython, curses, mtdutils, zlib, xz, ncompress, gzip, bzip2, gnutar, p7zip, cabextract
|
2014-09-22 07:53:51 +01:00
|
|
|
, pyqtgraph ? null
|
|
|
|
, visualizationSupport ? false }:
|
|
|
|
|
|
|
|
assert visualizationSupport -> pyqtgraph != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0.1";
|
|
|
|
name = "binwalk-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devttys0";
|
|
|
|
repo = "binwalk";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1r5389lk3gk8y4ksrfljyb97l6pwnwvv8g1slbgr20avkzgw8zmn";
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = with stdenv.lib; [ curses ]
|
|
|
|
++ optional visualizationSupport [ pyqtgraph ];
|
|
|
|
|
2014-09-22 19:37:39 +01:00
|
|
|
propagatedBuildInputs = with stdenv.lib; [ python wrapPython curses mtdutils zlib xz ncompress gzip bzip2 gnutar p7zip cabextract ]
|
2014-09-22 07:53:51 +01:00
|
|
|
++ optional visualizationSupport [ pyqtgraph ];
|
|
|
|
|
|
|
|
postInstall = "wrapPythonPrograms";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://binwalk.org";
|
|
|
|
description = "A tool for searching a given binary image for embedded files";
|
|
|
|
platforms = platforms.all;
|
2014-09-26 22:44:29 +01:00
|
|
|
maintainers = [ maintainers.koral ];
|
2014-09-22 07:53:51 +01:00
|
|
|
};
|
|
|
|
}
|