nixpkgs/pkgs/tools/misc/qdl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
812 B
Nix
Raw Normal View History

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