File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments