gnu: anki: Fix preferences error.

Fixes <https://issues.guix.gnu.org/65506>.

* gnu/packages/education.scm (anki)[source]: Add snippet.
This commit is contained in:
宋文武 2023-08-25 20:49:50 +08:00
parent 23bcc85765
commit 7533ed956c
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -737,6 +737,13 @@ (define-public anki
version "-source.tgz"))
(sha256
(base32 "1gfr51rnllkyzli73p4r51h5ypzfa3m7lic3m3rzpywmqwrxs07k"))
(modules '((guix build utils)))
;; Fix preferences error: <https://issues.guix.gnu.org/65506>.
(snippet '(substitute* "aqt/preferences.py"
(("qc\\['collapseTime']/60\\.0" x)
(format #f "int(~a)" x))
(("qc\\['timeLim']/60\\.0" x)
(format #f "int(~a)" x))))
(patches (search-patches "anki-mpv-args.patch"))))
(build-system gnu-build-system)
(arguments