GNU bug report logs -
#63801
[PATCH] gnu: Add yle-dl
Previous Next
Reported by: Saku Laesvuori <saku <at> laesvuori.fi>
Date: Tue, 30 May 2023 09:26:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
Saku Laesvuori via Guix-patches via <guix-patches <at> gnu.org> writes:
> * gnu/packages/video.scm (yle-dl): New variable.
Applied with the changes below. Thank you.
> * gnu/packages/video.scm: Import (gnu packages python-build).
This information is not necessary in the commit message.
> +(define-public yle-dl
> + (package
Indentation is off. You may want to run "guix style" command prior to
sending a patch (I don't, but I'm opinionated about indentation)
> + (name "yle-dl")
> + (version "20221231")
> + (source (origin
> + ;; PyPI release doesn't include tests
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/aajanki/yle-dl.git")
We usually remove ".git" suffix from URL.
> + (commit "c2a4d2f3926056496f520e289334d345889b51c4")))
We don't use raw hash commits there. The project tags its releases, so
it should be:
(commit version)
> + (add-after 'wrap 'wrap-path
> + (lambda _
> + (wrap-program (string-append #$output "/bin/yle-dl")
> + `("PATH" = (,(string-append #$ffmpeg "/bin")
> + ,(string-append #$wget "/bin"))))))
"#$ffmpeg" and "#$wget" would prevent package transformations. You
should prefer, e.g.,
(string-append #$(this-package-input "ffmpeg") "/bin")
Regards,
--
Nicolas Goaziou
This bug report was last modified 1 year and 321 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.