mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage {
|
|
pname = "edl";
|
|
version = "3.52.1-unstable-2024-10-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bkerler";
|
|
repo = "edl";
|
|
rev = "cef0076e1d4d29c1887c51786eb588503657b907";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-FOsgmM+i++t2MZiJTKV0Et8KXKDKQoFop67P6DdW1EY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|