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
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libxml2,
|
|
systemd,
|
|
libusb1,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qdl";
|
|
version = "0-unstable-2025-07-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linux-msm";
|
|
repo = "qdl";
|
|
rev = "cd3272350328185b1d4f7de08fdecf38f8fd31be";
|
|
hash = "sha256-Q4XcnBfr4wk2Kt0iLwF8niYoofg1YuXUehkg3G/gNOo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace-fail 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
libxml2
|
|
libusb1
|
|
];
|
|
|
|
makeFlags = [
|
|
"VERSION=${finalAttrs.src.rev}"
|
|
"prefix=${placeholder "out"}"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/linux-msm/qdl";
|
|
description = "Tool for flashing images to Qualcomm devices";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
muscaln
|
|
anas
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "qdl";
|
|
};
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
})
|