Files
nixpkgs/pkgs/by-name/ed/edl/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
unstableGitUpdater,
}:
python3Packages.buildPythonPackage {
pname = "edl";
version = "3.52.1-unstable-2025-09-10";
format = "setuptools";
src = fetchFromGitHub {
owner = "bkerler";
repo = "edl";
rev = "334028cd887a2960867750c403dbcad9cbe8c46b";
fetchSubmodules = true;
hash = "sha256-OYrncVbCJkeONeztfj7cB3QW1Q0tlF1b/LeuMqKiblk=";
};
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)";
# See https://github.com/NixOS/nixpkgs/issues/348931
license = licenses.unfree;
maintainers = with maintainers; [
lorenz
xddxdd
];
# Case-sensitive files in 'Loader' submodule
broken = stdenv.hostPlatform.isDarwin;
};
}