qdl: fix cross build, misc. cleanup (#396777)

This commit is contained in:
Colin 2025-04-12 19:59:54 +00:00 committed by GitHub
commit 449b9d0e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@
unstableGitUpdater,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "qdl";
version = "0-unstable-2025-03-19";
@ -20,18 +20,20 @@ stdenv.mkDerivation {
hash = "sha256-5ZV39whIm8qJIBLNdAsR2e8+f0jYjwE9dGNgh6ARPUY=";
};
postPatch = ''
substituteInPlace Makefile --replace-fail 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
systemd
libxml2
libusb1
];
installPhase = ''
runHook preInstall
install -Dm755 ./qdl -t $out/bin
runHook postInstall
'';
makeFlags = [
"VERSION=${finalAttrs.src.rev}"
"prefix=${placeholder "out"}"
];
meta = {
homepage = "https://github.com/linux-msm/qdl";
@ -46,4 +48,4 @@ stdenv.mkDerivation {
};
passthru.updateScript = unstableGitUpdater { };
}
})