GNU bug report logs -
#76015
[PATCH] gnu: haruna: Fix finding yt-dlp.
Previous Next
Reported by: Sughosha <sughosha <at> disroot.org>
Date: Sun, 2 Feb 2025 16:14:01 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Sughosha via Guix-patches via <guix-patches <at> gnu.org> writes:
> * gnu/packages/kde-multimedia.scm (yt-dlp)[arguments]<#:phases>: Add wrap-path.
>
> Change-Id: I4f2f7303b02441399c042d4bdd8e7586adfd9fe3
> ---
> gnu/packages/kde-multimedia.scm | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/kde-multimedia.scm b/gnu/packages/kde-multimedia.scm
> index ad0b504268..4d859cdedb 100644
> --- a/gnu/packages/kde-multimedia.scm
> +++ b/gnu/packages/kde-multimedia.scm
> @@ -156,7 +156,15 @@ (define-public haruna
> (base32 "0gvwsxlrwn2s6i4agmwa0r1lq1fybfyxv933g2z3n76qnn9mkbrb"))))
> (build-system qt-build-system)
> (arguments
> - (list #:qtbase qtbase))
> + (list #:qtbase qtbase
> + #:phases
> + #~(modify-phases %standard-phases
> + (add-after 'qt-wrap 'wrap-path
> + (lambda _
> + (wrap-program (string-append #$output "/bin/haruna")
> + `("PATH" ":" prefix
> + (,(string-append #$(this-package-input "yt-dlp")
> + "/bin")))))))))
see src/application.cpp
QString Application::youtubeDlExecutable()
{
auto ytDlp = QStandardPaths::findExecutable(u"yt-dlp"_s);
if (!ytDlp.isEmpty()) {
return ytDlp;
}
auto youtubeDl = QStandardPaths::findExecutable(u"youtube-dl"_s);
if (!youtubeDl.isEmpty()) {
return youtubeDl;
}
return QString();
}
It is better to replace findExecutable(u"yt-dlp"_s) with
findExecutable(u"/gnu/store/xxxx/bin/yt-dlp"_s)
> (native-inputs
> (list extra-cmake-modules))
> (inputs
>
> base-commit: 070c073d508d3197f0235adc424aec287e7dd916
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.