mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: mpv: Use G-expressions.
* gnu/packages/video.scm (mpv)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
51aac125f0
commit
9eea2db6ae
1 changed files with 27 additions and 25 deletions
|
@ -2169,31 +2169,33 @@ (define-public mpv
|
|||
(base32 "12qxwm1ww5vhjddl8yvj1xa0n1fi9z3lmzwhaiday2v59ca0qgsk"))))
|
||||
(build-system waf-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "player/lua/ytdl_hook.lua"
|
||||
(("\"yt-dlp\",")
|
||||
(string-append
|
||||
"\"" (search-input-file inputs "bin/yt-dlp") "\",")))))
|
||||
(add-before 'configure 'build-reproducibly
|
||||
(lambda _
|
||||
;; Somewhere in the build system library dependencies are enumerated
|
||||
;; and passed as linker flags, but the order in which they are added
|
||||
;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
|
||||
;; Set PYTHONHASHSEED as a workaround for deterministic results.
|
||||
(setenv "PYTHONHASHSEED" "1")))
|
||||
(add-before 'configure 'set-up-waf
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(copy-file (search-input-file inputs "/bin/waf") "waf")
|
||||
(setenv "CC" "gcc"))))
|
||||
#:configure-flags (list "--enable-libmpv-shared"
|
||||
"--enable-cdda"
|
||||
"--enable-dvdnav"
|
||||
"--disable-build-date")
|
||||
;; No check function defined.
|
||||
#:tests? #f))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-file-names
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "player/lua/ytdl_hook.lua"
|
||||
(("\"yt-dlp\",")
|
||||
(string-append
|
||||
"\"" (search-input-file inputs "bin/yt-dlp") "\",")))))
|
||||
(add-before 'configure 'build-reproducibly
|
||||
(lambda _
|
||||
;; Somewhere in the build system library dependencies are enumerated
|
||||
;; and passed as linker flags, but the order in which they are added
|
||||
;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
|
||||
;; Set PYTHONHASHSEED as a workaround for deterministic results.
|
||||
(setenv "PYTHONHASHSEED" "1")))
|
||||
(add-before 'configure 'set-up-waf
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(copy-file (search-input-file inputs "bin/waf") "waf")
|
||||
(setenv "CC" "gcc"))))
|
||||
#:configure-flags
|
||||
#~(list "--enable-libmpv-shared"
|
||||
"--enable-cdda"
|
||||
"--enable-dvdnav"
|
||||
"--disable-build-date")
|
||||
;; No check function defined.
|
||||
#:tests? #f))
|
||||
(native-inputs
|
||||
(list perl ; for zsh completion file
|
||||
pkg-config python-docutils))
|
||||
|
|
Loading…
Reference in a new issue