mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
qdl: fix cross build, misc. cleanup (#396777)
This commit is contained in:
commit
449b9d0e64
1 changed files with 10 additions and 8 deletions
|
@ -9,7 +9,7 @@
|
||||||
unstableGitUpdater,
|
unstableGitUpdater,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "qdl";
|
pname = "qdl";
|
||||||
version = "0-unstable-2025-03-19";
|
version = "0-unstable-2025-03-19";
|
||||||
|
|
||||||
|
@ -20,18 +20,20 @@ stdenv.mkDerivation {
|
||||||
hash = "sha256-5ZV39whIm8qJIBLNdAsR2e8+f0jYjwE9dGNgh6ARPUY=";
|
hash = "sha256-5ZV39whIm8qJIBLNdAsR2e8+f0jYjwE9dGNgh6ARPUY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile --replace-fail 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
systemd
|
|
||||||
libxml2
|
libxml2
|
||||||
libusb1
|
libusb1
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
makeFlags = [
|
||||||
runHook preInstall
|
"VERSION=${finalAttrs.src.rev}"
|
||||||
install -Dm755 ./qdl -t $out/bin
|
"prefix=${placeholder "out"}"
|
||||||
runHook postInstall
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/linux-msm/qdl";
|
homepage = "https://github.com/linux-msm/qdl";
|
||||||
|
@ -46,4 +48,4 @@ stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.updateScript = unstableGitUpdater { };
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue