1 { lib, fetchFromGitHub, python3, makeWrapper }:
3 python3.pkgs.buildPythonApplication rec {
6 version = "unstable-2019-09-11";
9 src = fetchFromGitHub {
12 rev = "0691f1a9a38604c2baf8c9af6b826eb2632af74a";
13 sha256 = "1hiivlgni4r3nd5n2rzl5qzw6y2wpjpmyls5lybrc8imd6rmj3w2";
16 propagatedBuildInputs = with python3.pkgs; [ crcmod python-lzo setuptools ];
21 sed -i '1s;^;#!${python3.interpreter}\n;' ubidump.py
22 patchShebangs ubidump.py
26 install -D -m755 ubidump.py $out/bin/ubidump
27 wrapProgram $out/bin/ubidump --set PYTHONPATH $PYTHONPATH
30 installCheckPhase = ''
31 $out/bin/ubidump -h > /dev/null
35 description = "View or extract the contents of UBIFS images";
36 homepage = "https://github.com/nlitsme/ubidump";
37 license = licenses.mit;
38 maintainers = with maintainers; [ sgo ];