Unverified Commit 2c1ddf10 authored by Stig's avatar Stig Committed by GitHub
Browse files

yaffshiv: init at 0-unstable-2024-08-30 (#348180)

parents 6d90e72a 681b468a
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  python3,
}:

stdenv.mkDerivation {
  pname = "yaffshiv";
  version = "0-unstable-2024-08-30";

  src = fetchFromGitHub {
    owner = "devttys0";
    repo = "yaffshiv";
    rev = "f6f0ef77bf79ca46aaa77bc34eda06e7b55da8e8";
    sha256 = "sha256-C43UzkaPKheexvVcKi/Krcik+arPXggWAYMSi9RY5eo=";
  };

  buildInputs = [ python3 ];

  installPhase = ''
    install -D -m755 src/yaffshiv $out/bin/yaffshiv
  '';

  meta = {
    description = "Simple YAFFS file system parser and extractor";
    homepage = "https://github.com/devttys0/yaffshiv";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sgo ];
    mainProgram = "yaffshiv";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
  pyqtgraph,
  pyqt5,
  pytestCheckHook,
  yaffshiv,
  visualizationSupport ? false,
}:

@@ -49,6 +50,7 @@ buildPythonPackage rec {
      squashfsTools
      xz
      pycrypto
      yaffshiv
    ]
    ++ lib.optionals visualizationSupport [
      matplotlib