diff options
| author | Robin Templeton <robin@guixotic.coop> | 2025-06-16 02:42:59 -0400 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-06-30 00:07:11 +0800 |
| commit | bd0f8ecc5f4bf9d73f46b2df8b6b7de64b21f6c5 (patch) | |
| tree | 008f38e49890f0326d565a0657c17400ab47fe9c /gnu/packages/browser-extensions.scm | |
| parent | 60e4bb1b12b78316d5ec6c6979b0ea51259d25ab (diff) | |
gnu: Add web-eid-host.
* gnu/packages/browser-extensions.scm: New variable.
Change-Id: I41984883b810c378a0c0eef5f54d33a566674269
Signed-off-by: Hilton Chain <hako@ultrarare.space>
Modified-by: Hilton Chain <hako@ultrarare.space>
Diffstat (limited to 'gnu/packages/browser-extensions.scm')
| -rw-r--r-- | gnu/packages/browser-extensions.scm | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/gnu/packages/browser-extensions.scm b/gnu/packages/browser-extensions.scm index 34c348904dd..c9d9bb48f70 100644 --- a/gnu/packages/browser-extensions.scm +++ b/gnu/packages/browser-extensions.scm | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org> | 2 | ;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org> |
| 3 | ;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr> | 3 | ;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr> |
| 4 | ;;; Copyright © 2023, 2024 Clément Lassieur <clement@lassieur.org> | 4 | ;;; Copyright © 2023, 2024 Clément Lassieur <clement@lassieur.org> |
| 5 | ;;; Copyright © 2025 Robin Templeton <robin@guixotic.coop> | ||
| 5 | ;;; | 6 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 7 | ;;; This file is part of GNU Guix. |
| 7 | ;;; | 8 | ;;; |
| @@ -25,12 +26,18 @@ | |||
| 25 | #:use-module (guix git-download) | 26 | #:use-module (guix git-download) |
| 26 | #:use-module (guix build-system copy) | 27 | #:use-module (guix build-system copy) |
| 27 | #:use-module (guix build-system gnu) | 28 | #:use-module (guix build-system gnu) |
| 29 | #:use-module (guix build-system qt) | ||
| 28 | #:use-module ((guix licenses) #:prefix license:) | 30 | #:use-module ((guix licenses) #:prefix license:) |
| 29 | #:use-module (gnu build chromium-extension) | 31 | #:use-module (gnu build chromium-extension) |
| 30 | #:use-module (gnu build icecat-extension) | 32 | #:use-module (gnu build icecat-extension) |
| 33 | #:use-module (gnu packages check) | ||
| 31 | #:use-module (gnu packages compression) | 34 | #:use-module (gnu packages compression) |
| 32 | #:use-module (gnu packages password-utils) | 35 | #:use-module (gnu packages password-utils) |
| 33 | #:use-module (gnu packages python)) | 36 | #:use-module (gnu packages pkg-config) |
| 37 | #:use-module (gnu packages python) | ||
| 38 | #:use-module (gnu packages qt) | ||
| 39 | #:use-module (gnu packages security-token) | ||
| 40 | #:use-module (gnu packages tls)) | ||
| 34 | 41 | ||
| 35 | (define adaptive-tab-bar-colour | 42 | (define adaptive-tab-bar-colour |
| 36 | (package | 43 | (package |
| @@ -365,3 +372,48 @@ selected.") | |||
| 365 | 372 | ||
| 366 | (define-public privacy-redirect/icecat | 373 | (define-public privacy-redirect/icecat |
| 367 | (make-icecat-extension privacy-redirect)) | 374 | (make-icecat-extension privacy-redirect)) |
| 375 | |||
| 376 | (define-public web-eid-host | ||
| 377 | (package | ||
| 378 | (name "web-eid-host") | ||
| 379 | (version "2.7.0") | ||
| 380 | (source | ||
| 381 | (origin | ||
| 382 | (method git-fetch) | ||
| 383 | (uri (git-reference | ||
| 384 | (url "https://github.com/web-eid/web-eid-app") | ||
| 385 | (commit (string-append "v" version)) | ||
| 386 | ;; This package contains two git modules: | ||
| 387 | ;; <https://github.com/web-eid/libelectronic-id>, a library with | ||
| 388 | ;; no support for standalone installation; and a copy of the | ||
| 389 | ;; Web-eID WebExtension, deleted below. | ||
| 390 | (recursive? #t))) | ||
| 391 | (file-name (git-file-name name version)) | ||
| 392 | (sha256 | ||
| 393 | (base32 "02kryhzy4zizly8pj0bldcfh1hn93ls83033n98i6zaylhf3sn5f")) | ||
| 394 | (modules '((guix build utils))) | ||
| 395 | ;; Delete bundled copy of the corresponding browser extension. | ||
| 396 | (snippet '(delete-file-recursively "src/mac/js")))) | ||
| 397 | (build-system qt-build-system) | ||
| 398 | (arguments | ||
| 399 | (list | ||
| 400 | #:qtbase qtbase | ||
| 401 | #:phases | ||
| 402 | #~(modify-phases %standard-phases | ||
| 403 | (add-after 'install 'install-icecat-nmh | ||
| 404 | (lambda _ | ||
| 405 | (let ((icecat-lib (format #f "~A/lib/icecat" #$output)) | ||
| 406 | (mozilla-lib (format #f "~A/lib/mozilla" #$output))) | ||
| 407 | (mkdir-p icecat-lib) | ||
| 408 | (copy-recursively mozilla-lib icecat-lib))))))) | ||
| 409 | (native-inputs (list googletest pkg-config qttools)) | ||
| 410 | (inputs (list openssl pcsc-lite qtsvg)) | ||
| 411 | (home-page "https://github.com/web-eid/web-eid-app") | ||
| 412 | (synopsis "Web eID native messaging host for Estonian ID cards") | ||
| 413 | (description | ||
| 414 | "Native messaging host for the Web eID browser extension that performs | ||
| 415 | signing and authentication operations with Estonian ID cards. The | ||
| 416 | @command{web-eid} program can also be used directly in command-line mode. | ||
| 417 | |||
| 418 | It requires a running pcscd service and a compatible card reader.") | ||
| 419 | (license license:expat))) | ||
