blob: 77ac437624922325929bf0fba198d0a4515515ea (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
unstableGitUpdater,
}:
python3Packages.buildPythonPackage {
pname = "edl";
version = "3.52.1-unstable-2024-08-27";
src = fetchFromGitHub {
owner = "bkerler";
repo = "edl";
rev = "d2c585e4ccc066895b71ca9014c1ebb5af316e07";
fetchSubmodules = true;
hash = "sha256-hQturda+iDmH5DVP1CjG526wcggdzTSrW2jqrEzLXtY=";
};
propagatedBuildInputs = with python3Packages; [
pyusb
pyserial
docopt
pylzma
pycryptodome
lxml
colorama
capstone
keystone-engine
];
# No tests set up
doCheck = false;
# EDL loaders are ELFs but shouldn't be touched, rest is Python anyways
dontStrip = true;
# edl has a spurious dependency on "usb" which has nothing to do with the
# project and was probably added by accident trying to add pyusb
postPatch = ''
sed -i '/'usb'/d' setup.py
'';
postInstall = ''
mkdir -p $out/etc/udev/rules.d
cp $src/Drivers/51-edl.rules $out/etc/udev/rules.d/51-edl.rules
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
homepage = "https://github.com/bkerler/edl";
description = "Qualcomm EDL tool (Sahara / Firehose / Diag)";
license = licenses.mit;
maintainers = with maintainers; [
lorenz
xddxdd
];
# Case-sensitive files in 'Loader' submodule
broken = stdenv.hostPlatform.isDarwin;
};
}
|