This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new bd0f8ecc5f gnu: Add web-eid-host.
bd0f8ecc5f is described below

commit bd0f8ecc5f4bf9d73f46b2df8b6b7de64b21f6c5
Author: Robin Templeton <[email protected]>
AuthorDate: Mon Jun 16 02:42:59 2025 -0400

    gnu: Add web-eid-host.
    
    * gnu/packages/browser-extensions.scm: New variable.
    
    Change-Id: I41984883b810c378a0c0eef5f54d33a566674269
    Signed-off-by: Hilton Chain <[email protected]>
    Modified-by: Hilton Chain <[email protected]>
---
 gnu/packages/browser-extensions.scm | 54 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/browser-extensions.scm 
b/gnu/packages/browser-extensions.scm
index 34c348904d..c9d9bb48f7 100644
--- a/gnu/packages/browser-extensions.scm
+++ b/gnu/packages/browser-extensions.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2020, 2021 Marius Bakke <[email protected]>
 ;;; Copyright © 2023 Nicolas Graves <[email protected]>
 ;;; Copyright © 2023, 2024 Clément Lassieur <[email protected]>
+;;; Copyright © 2025 Robin Templeton <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -25,12 +26,18 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system qt)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu build chromium-extension)
   #:use-module (gnu build icecat-extension)
+  #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages password-utils)
-  #:use-module (gnu packages python))
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages qt)
+  #:use-module (gnu packages security-token)
+  #:use-module (gnu packages tls))
 
 (define adaptive-tab-bar-colour
   (package
@@ -365,3 +372,48 @@ selected.")
 
 (define-public privacy-redirect/icecat
   (make-icecat-extension privacy-redirect))
+
+(define-public web-eid-host
+  (package
+    (name "web-eid-host")
+    (version "2.7.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/web-eid/web-eid-app";)
+             (commit (string-append "v" version))
+             ;; This package contains two git modules:
+             ;; <https://github.com/web-eid/libelectronic-id>, a library with
+             ;; no support for standalone installation; and a copy of the
+             ;; Web-eID WebExtension, deleted below.
+             (recursive? #t)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "02kryhzy4zizly8pj0bldcfh1hn93ls83033n98i6zaylhf3sn5f"))
+       (modules '((guix build utils)))
+       ;; Delete bundled copy of the corresponding browser extension.
+       (snippet '(delete-file-recursively "src/mac/js"))))
+    (build-system qt-build-system)
+    (arguments
+     (list
+      #:qtbase qtbase
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-icecat-nmh
+            (lambda _
+              (let ((icecat-lib (format #f "~A/lib/icecat" #$output))
+                    (mozilla-lib (format #f "~A/lib/mozilla" #$output)))
+                (mkdir-p icecat-lib)
+                (copy-recursively mozilla-lib icecat-lib)))))))
+    (native-inputs (list googletest pkg-config qttools))
+    (inputs (list openssl pcsc-lite qtsvg))
+    (home-page "https://github.com/web-eid/web-eid-app";)
+    (synopsis "Web eID native messaging host for Estonian ID cards")
+    (description
+     "Native messaging host for the Web eID browser extension that performs
+signing and authentication operations with Estonian ID cards.  The
+@command{web-eid} program can also be used directly in command-line mode.
+
+It requires a running pcscd service and a compatible card reader.")
+    (license license:expat)))

Reply via email to