2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, systemd
|
2024-07-27 06:49:29 +00:00
|
|
|
, libusb1
|
|
|
|
, unstableGitUpdater
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "qdl";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "unstable-2024-06-10";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-11-16 04:20:00 +00:00
|
|
|
owner = "linux-msm";
|
|
|
|
repo = "qdl";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "cbd46184d33af597664e08aff2b9181ae2f87aa6";
|
|
|
|
sha256 = "sha256-0PeOunYXY0nEEfGFGdguf5+GNN950GhPfMaD8h1ez/8=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ systemd libxml2 libusb1 ];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 ./qdl -t $out/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/linux-msm/qdl";
|
2021-06-06 07:54:09 +00:00
|
|
|
description = "Tool for flashing images to Qualcomm devices";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.bsd3;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ muscaln anas ];
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "qdl";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
2021-06-06 07:54:09 +00:00
|
|
|
}
|