mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
gnu: flatpak: Fix certificate error from p11-kit.
* gnu/packages/package-management.scm (flatpak)[inputs]: Add p11-kit-next. [arguments]: Add new 'p11-kit-fix phase to patch source to use p11-kit-next input instead of an implicit p11-kit from dependencies. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
73a795e77c
commit
d407c107f3
1 changed files with 11 additions and 0 deletions
|
@ -1565,6 +1565,16 @@ (define-public flatpak
|
|||
(("/bin/kill") (which "kill"))
|
||||
(("/usr/bin/python3") (which "python3")))
|
||||
#t))
|
||||
(add-after 'unpack 'p11-kit-fix
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((p11-path (string-append (assoc-ref inputs "p11-kit-next")
|
||||
"/bin/p11-kit")))
|
||||
(substitute* "session-helper/flatpak-session-helper.c"
|
||||
(("\"p11-kit\",")
|
||||
(string-append "\"" p11-path "\","))
|
||||
(("if \\(g_find_program_in_path \\(\"p11-kit\"\\)\\)")
|
||||
(string-append "if (g_find_program_in_path (\""
|
||||
p11-path "\"))"))))))
|
||||
;; Many tests fail for unknown reasons, so we just run a few basic
|
||||
;; tests.
|
||||
(replace 'check
|
||||
|
@ -1603,6 +1613,7 @@ (define-public flatpak
|
|||
("libsoup" ,libsoup)
|
||||
("libxau" ,libxau)
|
||||
("libxml2" ,libxml2)
|
||||
("p11-kit-next" ,p11-kit-next)
|
||||
("util-linux" ,util-linux)
|
||||
("xdg-dbus-proxy" ,xdg-dbus-proxy)))
|
||||
(home-page "https://flatpak.org")
|
||||
|
|
Loading…
Reference in a new issue