~ruther/guix-local

a89d65eec1948cbcbf9936939906fae9cdabf1e7 — Marius Bakke 4 years ago 867c33d
chromium-extension: Avoid another usage of the store-mapped /tmp.

* gnu/build/chromium-extension.scm (make-crx): Use a Chromium profile relative
to the build directory instead of /tmp.  While here, remove obsolete comment.
1 files changed, 1 insertions(+), 3 deletions(-)

M gnu/build/chromium-extension.scm
M gnu/build/chromium-extension.scm => gnu/build/chromium-extension.scm +1 -3
@@ 83,10 83,8 @@ in PACKAGE-OUTPUT of PACKAGE.  The extension will be signed with SIGNING-KEY."
           (system (string-append xvfb " :1 &"))
           (setenv "DISPLAY" ":1")
           (sleep 2)                    ;give Xorg some time to initialize...
           ;; Chromium stores the current time in the .crx Zip archive.
           ;; Use a fixed timestamp for deterministic behavior.
           (invoke chromium
                   "--user-data-dir=/tmp/signing-profile"
                   "--user-data-dir=chromium-profile"
                   (string-append "--pack-extension=" packdir)
                   (string-append "--pack-extension-key=" #$signing-key))
           (copy-file (string-append packdir ".crx") #$output))))