Merge pull request #216708 from lorenz/add-edl
This commit is contained in:
commit
43aaf447d9
2 changed files with 47 additions and 0 deletions
pkgs
45
pkgs/development/embedded/edl/default.nix
Normal file
45
pkgs/development/embedded/edl/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "edl";
|
||||
version = "unstable-2022-09-07";
|
||||
|
||||
src = fetchFromGitHub rec {
|
||||
owner = "bkerler";
|
||||
repo = "edl";
|
||||
rev = "f6b94da5faa003b48d24a5f4a8f0b8495626fd5b";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-bxnRy+inWNArE2gUA/qDPy7NKvqBm43sbxdIaTc9N28=";
|
||||
};
|
||||
# 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
|
||||
'';
|
||||
# No tests set up
|
||||
doCheck = false;
|
||||
# EDL loaders are ELFs but shouldn't be touched, rest is Python anyways
|
||||
dontStrip = true;
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pyusb
|
||||
pyserial
|
||||
docopt
|
||||
pylzma
|
||||
pycryptodome
|
||||
lxml
|
||||
colorama
|
||||
# usb
|
||||
capstone
|
||||
keystone-engine
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bkerler/edl";
|
||||
description = "Qualcomm EDL tool (Sahara / Firehose / Diag)";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lorenz ];
|
||||
# Case-sensitive files in 'Loader' submodule
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
|
|
@ -6914,6 +6914,8 @@ with pkgs;
|
|||
|
||||
edk2-uefi-shell = callPackage ../tools/misc/edk2-uefi-shell { };
|
||||
|
||||
edl = callPackage ../development/embedded/edl { };
|
||||
|
||||
edlib = callPackage ../development/libraries/science/biology/edlib { };
|
||||
|
||||
eff = callPackage ../development/interpreters/eff { };
|
||||
|
|
Loading…
Reference in a new issue