Subject: [PATCH v2] gnu: haruna: Fix finding yt-dlp.

From: Sughosha <[email-masked]>
Date: Sat, 8 Feb 2025 18:24:36 +0530

* gnu/packages/kde-multimedia.scm (haruna)[arguments]<#:phases>: Add
fix-yt-dlp-path.

Change-Id: I3f6e3f5b9f2dd56ec69b6ea38a0da9a5e01a1909
---
 gnu/packages/kde-multimedia.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-multimedia.scm b/gnu/packages/kde-multimedia.scm
index ad0b504268..ac0b90c9b6 100644
--- a/gnu/packages/kde-multimedia.scm
+++ b/gnu/packages/kde-multimedia.scm
@@ -156,7 +156,16 @@ (define-public haruna
                (base32 "0gvwsxlrwn2s6i4agmwa0r1lq1fybfyxv933g2z3n76qnn9mkbrb"))))
     (build-system qt-build-system)
     (arguments
-     (list #:qtbase qtbase))
+     (list #:qtbase qtbase
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-yt-dlp-path
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "src/application.cpp"
+                     (("findExecutable\\(u\"yt-dlp\"")
+                      (string-append "findExecutable(u\""
+                                     (search-input-file inputs "bin/yt-dlp")
+                                     "\""))))))))
     (native-inputs
      (list extra-cmake-modules))
     (inputs

base-commit: b64d3168af697ceb2a96e7e2c62bcf418b8a586a
-- 
2.47.1