[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/13: chromium-extension: Reduce imported-modules scope.
From: |
guix-commits |
Subject: |
05/13: chromium-extension: Reduce imported-modules scope. |
Date: |
Thu, 16 Dec 2021 16:23:12 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 173860eb41102c5af2cfdc0404808075d5a5ff3a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Dec 16 19:04:21 2021 +0100
chromium-extension: Reduce imported-modules scope.
* gnu/build/chromium-extension.scm (make-crx): Delay with-imported-modules
until the builder code.
(crx->chromium-json): Remove needless define* while at it.
---
gnu/build/chromium-extension.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/build/chromium-extension.scm b/gnu/build/chromium-extension.scm
index 81c68f2..fb15712 100644
--- a/gnu/build/chromium-extension.scm
+++ b/gnu/build/chromium-extension.scm
@@ -68,9 +68,9 @@ in PACKAGE-OUTPUT of PACKAGE. The extension will be signed
with SIGNING-KEY."
(define name (package-name package))
(define version (package-version package))
- (with-imported-modules '((guix build utils))
- (computed-file
- (string-append name "-" version ".crx")
+ (computed-file
+ (string-append name "-" version ".crx")
+ (with-imported-modules '((guix build utils))
#~(begin
;; This is not great. We pull Xorg and Chromium just to Zip and
;; sign an extension. This should be implemented with something
@@ -95,10 +95,10 @@ in PACKAGE-OUTPUT of PACKAGE. The extension will be signed
with SIGNING-KEY."
"--user-data-dir=/tmp/signing-profile"
(string-append "--pack-extension=" packdir)
(string-append "--pack-extension-key=" #$signing-key))
- (copy-file (string-append packdir ".crx") #$output)))
- #:local-build? #t)))
+ (copy-file (string-append packdir ".crx") #$output))))
+ #:local-build? #t))
-(define* (crx->chromium-json crx version)
+(define (crx->chromium-json crx version)
"Return a derivation that creates a Chromium JSON settings file for the
extension given as CRX. VERSION is used to signify the CRX version, and
must match the version listed in the extension manifest.json."
- branch master updated (d2af1df -> 00ec9e3), guix-commits, 2021/12/16
- 04/13: chromium-extension: Simplify builder code., guix-commits, 2021/12/16
- 03/13: gnu: ungoogled-chromium: Improve Vulkan support., guix-commits, 2021/12/16
- 10/13: gnu: file: Add 5.41., guix-commits, 2021/12/16
- 12/13: gnu: python-vcrpy: Fix test failure., guix-commits, 2021/12/16
- 08/13: gnu: python-daemon: Fix test failure., guix-commits, 2021/12/16
- 11/13: gnu: python-magic: Work around crash on .crx files., guix-commits, 2021/12/16
- 09/13: gnu: python-magic: Run more tests., guix-commits, 2021/12/16
- 05/13: chromium-extension: Reduce imported-modules scope.,
guix-commits <=
- 01/13: gnu: ungoogled-chromium: Enable RUNPATH validation., guix-commits, 2021/12/16
- 07/13: chromium-extension: Build .crx files in a deterministic fashion., guix-commits, 2021/12/16
- 13/13: gnu: rtv: Disable sanity check., guix-commits, 2021/12/16
- 02/13: gnu: ungoogled-chromium: Unexpire accelerated video decoding., guix-commits, 2021/12/16
- 06/13: chromium-extension: Avoid usage of gcrypt at evaluation time., guix-commits, 2021/12/16