about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/ubidump/default.nix
blob: 72ef56fa47f8e85e04c74a9f54ce21a1b47194dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication {
  pname = "ubidump";
  version = "0-unstable-2023-09-20";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nlitsme";
    repo = "ubidump";
    rev = "c8cffcbb8c2d61ebece81dff643b8eccfe6d5642";
    sha256 = "sha256-R568pV3bkdpNAexr8tfAbXVpvHEx/9r1KDWhDM+HyVg=";
  };

  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [
    setuptools # pkg_resources
    python-lzo
    crcmod
  ];

  meta = with lib; {
    description = "View or extract the contents of UBIFS images";
    homepage = "https://github.com/nlitsme/ubidump";
    license = licenses.mit;
    maintainers = with maintainers; [ sgo ];
    mainProgram = "ubidump";
  };
}