Skip to content

Commit 449b9d0

Browse files
authored
qdl: fix cross build, misc. cleanup (#396777)
2 parents 5464c34 + bc94793 commit 449b9d0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

pkgs/by-name/qd/qdl/package.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
unstableGitUpdater,
1010
}:
1111

12-
stdenv.mkDerivation {
12+
stdenv.mkDerivation (finalAttrs: {
1313
pname = "qdl";
1414
version = "0-unstable-2025-03-19";
1515

@@ -20,18 +20,20 @@ stdenv.mkDerivation {
2020
hash = "sha256-5ZV39whIm8qJIBLNdAsR2e8+f0jYjwE9dGNgh6ARPUY=";
2121
};
2222

23+
postPatch = ''
24+
substituteInPlace Makefile --replace-fail 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
25+
'';
26+
2327
nativeBuildInputs = [ pkg-config ];
2428
buildInputs = [
25-
systemd
2629
libxml2
2730
libusb1
2831
];
2932

30-
installPhase = ''
31-
runHook preInstall
32-
install -Dm755 ./qdl -t $out/bin
33-
runHook postInstall
34-
'';
33+
makeFlags = [
34+
"VERSION=${finalAttrs.src.rev}"
35+
"prefix=${placeholder "out"}"
36+
];
3537

3638
meta = {
3739
homepage = "https://github.com/linux-msm/qdl";
@@ -46,4 +48,4 @@ stdenv.mkDerivation {
4648
};
4749

4850
passthru.updateScript = unstableGitUpdater { };
49-
}
51+
})

0 commit comments

Comments
 (0)