2023-10-21 04:14:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-10-21 04:31:23 +00:00
|
|
|
, pkg-config
|
2023-10-21 04:14:22 +00:00
|
|
|
, libxml2
|
|
|
|
, systemd
|
|
|
|
}:
|
2021-06-01 14:18:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "qdl";
|
2023-10-21 04:31:23 +00:00
|
|
|
version = "unstable-2023-04-11";
|
2021-06-01 14:18:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-21 04:31:23 +00:00
|
|
|
owner = "linux-msm";
|
2023-10-21 04:14:22 +00:00
|
|
|
repo = "qdl";
|
2023-10-21 04:31:23 +00:00
|
|
|
rev = "3b22df2bc7de02d867334af3a7aa8606db4f8cdd";
|
|
|
|
sha256 = "sha256-2sL9HX73APTn9nQOx1Efdkz9F4bNASPMVFMx6YOqxyc=";
|
2021-06-01 14:18:22 +00:00
|
|
|
};
|
|
|
|
|
2023-10-21 04:31:23 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-01 14:18:22 +00:00
|
|
|
buildInputs = [ systemd libxml2 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 ./qdl -t $out/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-21 04:31:23 +00:00
|
|
|
homepage = "https://github.com/linux-msm/qdl";
|
2021-06-01 14:18:22 +00:00
|
|
|
description = "Tool for flashing images to Qualcomm devices";
|
2023-10-21 04:14:22 +00:00
|
|
|
license = licenses.bsd3;
|
2022-01-27 07:48:49 +00:00
|
|
|
maintainers = with maintainers; [ muscaln ];
|
2023-10-21 04:14:22 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "qdl";
|
2021-06-01 14:18:22 +00:00
|
|
|
};
|
|
|
|
}
|