[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/40: gnu: ungoogled-chromium-wayland: Use gexp.
From: |
guix-commits |
Subject: |
01/40: gnu: ungoogled-chromium-wayland: Use gexp. |
Date: |
Tue, 5 Sep 2023 20:02:14 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit c83c0a00937a5884ff79b0baa05804e9bed6e8b1
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Thu Aug 31 19:23:54 2023 +0200
gnu: ungoogled-chromium-wayland: Use gexp.
* gnu/packages/chromium.scm (ungoogled-chromium-wayland): Use gexp.
[arguments](builder): Use gexp.
[inputs]: Rewrite inputs.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/chromium.scm | 68 +++++++++++++++++++++++------------------------
1 file changed, 33 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 6a9f113831..513e545938 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2019-2023 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -966,42 +967,39 @@ testing.")
(name "ungoogled-chromium-wayland")
(native-inputs '())
(inputs
- `(("bash" ,bash-minimal)
- ("glibc-locales" ,glibc-utf8-locales)
- ("ungoogled-chromium" ,ungoogled-chromium)))
+ (list bash-minimal glibc-utf8-locales ungoogled-chromium))
(build-system trivial-build-system)
(arguments
- '(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((bash (assoc-ref %build-inputs "bash"))
- (chromium (assoc-ref %build-inputs "ungoogled-chromium"))
- (locales (assoc-ref %build-inputs "glibc-locales"))
- (out (assoc-ref %outputs "out"))
- (exe (string-append out "/bin/chromium")))
-
- ;; Use a Unicode locale so we can substitute the file below.
- (setenv "GUIX_LOCPATH" (string-append locales "/lib/locale"))
- (setlocale LC_ALL "en_US.utf8")
-
- (mkdir-p (dirname exe))
- (symlink (string-append chromium "/bin/chromedriver")
- (string-append out "/bin/chromedriver"))
-
- (call-with-output-file exe
- (lambda (port)
- (format port "#!~a
+ (list
+ #:modules '((guix build utils))
+ #:builder
+ #~(begin
+ (use-modules (guix build utils))
+ (let* ((bash #$(this-package-input "bash-minimal"))
+ (chromium #$(this-package-input "ungoogled-chromium"))
+ (locales #$(this-package-input "glibc-utf8-locales"))
+ (exe (string-append #$output "/bin/chromium")))
+
+ ;; Use a Unicode locale so we can substitute the file below.
+ (setenv "GUIX_LOCPATH" (string-append locales "/lib/locale"))
+ (setlocale LC_ALL "en_US.utf8")
+
+ (mkdir-p (dirname exe))
+ (symlink (string-append chromium "/bin/chromedriver")
+ (string-append #$output "/bin/chromedriver"))
+
+ (call-with-output-file exe
+ (lambda (port)
+ (format port "#!~a
exec ~a --enable-features=UseOzonePlatform --ozone-platform=wayland \
--enable-features=WebRTCPipeWireCapturer $@"
- (string-append bash "/bin/bash")
- (string-append chromium "/bin/chromium"))))
- (chmod exe #o555)
-
- ;; Provide the manual and .desktop file.
- (copy-recursively (string-append chromium "/share")
- (string-append out "/share"))
- (substitute* (string-append
- out "/share/applications/chromium.desktop")
- ((chromium) out))
- #t))))))
+ (string-append bash "/bin/bash")
+ (string-append chromium "/bin/chromium"))))
+ (chmod exe #o555)
+
+ ;; Provide the manual and .desktop file.
+ (copy-recursively (string-append chromium "/share")
+ (string-append #$output "/share"))
+ (substitute* (string-append
+ #$output "/share/applications/chromium.desktop")
+ ((chromium) #$output))))))))
- 07/40: doc: Document mumi command-line interface., (continued)
- 07/40: doc: Document mumi command-line interface., guix-commits, 2023/09/05
- 23/40: gnu: Add book-sparc., guix-commits, 2023/09/05
- 09/40: gnu: emacs-magit: Update to 3.3.0-5.186414a., guix-commits, 2023/09/05
- 17/40: gnu: thunar: Update to 4.18.7., guix-commits, 2023/09/05
- 20/40: gnu: Add font-junicode., guix-commits, 2023/09/05
- 24/40: gnu: kdenlive: Add missing kirigami input., guix-commits, 2023/09/05
- 33/40: gnu: arcan-wayland: Deprecate in favor of arcan., guix-commits, 2023/09/05
- 10/40: gnu: ibus: Disable registry cache., guix-commits, 2023/09/05
- 08/40: gnu: emacs-transient: Update to 0.4.3-0.cc0fa80., guix-commits, 2023/09/05
- 05/40: gnu: highlight: Update to 4.8., guix-commits, 2023/09/05
- 01/40: gnu: ungoogled-chromium-wayland: Use gexp.,
guix-commits <=
- 14/40: gnu: sideload: Update to 6.2.1., guix-commits, 2023/09/05
- 06/40: gnu: Add fonts-tlwg., guix-commits, 2023/09/05
- 15/40: gnu: kaidan: Add missing input., guix-commits, 2023/09/05
- 19/40: gnu: simh: Use G-Expressions., guix-commits, 2023/09/05
- 34/40: gnu: ardour: Build locales., guix-commits, 2023/09/05
- 29/40: gnu: arcan: Build all features., guix-commits, 2023/09/05
- 32/40: gnu: arcan: Restyle format., guix-commits, 2023/09/05
- 38/40: gnu: python-skia-pathops: Update to 0.8.0., guix-commits, 2023/09/05
- 18/40: gnu: simh: Update to 3.12-4., guix-commits, 2023/09/05
- 39/40: Revert "guix: git: Avoid touching the network unless needed in 'reference-available?'.", guix-commits, 2023/09/05