diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-06-10 16:01:02 +0900 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-06-11 22:15:42 +0800 |
| commit | d829ab32c405aab25310cee6e5270fe0a8ae616d (patch) | |
| tree | ae711b4f5dae719b33d08086249fc16f851a8f32 | |
| parent | d154ff02195adbeb2e8c2fede14659fc3ddab199 (diff) | |
build/chromium-binary: Use 'add-input-labels' for host-inputs labels.
* nonguix/build-system/chromium-binary.scm (add-input-labels): New procedure.
(lower) <host-inputs>: Remove labels. Adjust accordingly.
* nonguix/build/chromium-binary-build-system.scm
(install-wrapper): Adjust for label change of fontconfig-minimal.
Signed-off-by: Hilton Chain <hako@ultrarare.space>
| -rw-r--r-- | nonguix/build-system/chromium-binary.scm | 113 | ||||
| -rw-r--r-- | nonguix/build/chromium-binary-build-system.scm | 2 |
2 files changed, 59 insertions, 56 deletions
diff --git a/nonguix/build-system/chromium-binary.scm b/nonguix/build-system/chromium-binary.scm index 4a5baaf..6963982 100644 --- a/nonguix/build-system/chromium-binary.scm +++ b/nonguix/build-system/chromium-binary.scm | |||
| @@ -44,6 +44,9 @@ | |||
| 44 | ;; | 44 | ;; |
| 45 | ;; Code: | 45 | ;; Code: |
| 46 | 46 | ||
| 47 | (define add-input-labels | ||
| 48 | (@@ (guix packages) add-input-labels)) | ||
| 49 | |||
| 47 | (define %chromium-binary-build-system-modules | 50 | (define %chromium-binary-build-system-modules |
| 48 | ;; Build-side modules imported by default. | 51 | ;; Build-side modules imported by default. |
| 49 | `((nonguix build chromium-binary-build-system) | 52 | `((nonguix build chromium-binary-build-system) |
| @@ -72,61 +75,61 @@ | |||
| 72 | (define private-keywords | 75 | (define private-keywords |
| 73 | '(#:target #:patchelf #:inputs #:native-inputs)) | 76 | '(#:target #:patchelf #:inputs #:native-inputs)) |
| 74 | (define host-inputs | 77 | (define host-inputs |
| 75 | `(,@(if source | 78 | (append |
| 76 | `(("source" ,source)) | 79 | (if source |
| 77 | '()) | 80 | `(("source" ,source)) |
| 78 | 81 | '()) | |
| 79 | ,@inputs | 82 | inputs |
| 80 | 83 | ;; Inputs needed by the Electron. | |
| 81 | ("alsa-lib" ,alsa-lib) | 84 | (add-input-labels |
| 82 | ("atk" ,atk) | 85 | alsa-lib |
| 83 | ("at-spi2-atk" ,at-spi2-atk) | 86 | atk |
| 84 | ("at-spi2-core" ,at-spi2-core) | 87 | at-spi2-atk |
| 85 | ("bash-minimal" ,bash-minimal) | 88 | at-spi2-core |
| 86 | ("cairo" ,cairo) | 89 | bash-minimal |
| 87 | ("cups" ,cups) | 90 | cairo |
| 88 | ("dbus" ,dbus) | 91 | cups |
| 89 | ("eudev" ,eudev) | 92 | dbus |
| 90 | ("expat" ,expat) | 93 | eudev |
| 91 | ("fontconfig" ,fontconfig) | 94 | expat |
| 92 | ("freetype" ,freetype) | 95 | fontconfig |
| 93 | ("gcc:lib" ,gcc "lib") | 96 | freetype |
| 94 | ("glib" ,glib) | 97 | `(,gcc "lib") |
| 95 | ("gtk+" ,gtk+) | 98 | glib |
| 96 | ("libdrm" ,libdrm) | 99 | gtk+ |
| 97 | ("libnotify" ,libnotify) | 100 | libdrm |
| 98 | ("librsvg" ,librsvg) | 101 | libnotify |
| 99 | ("libsecret" ,libsecret) | 102 | librsvg |
| 100 | ("libx11" ,libx11) | 103 | libsecret |
| 101 | ("libxcb" ,libxcb) | 104 | libx11 |
| 102 | ("libxcomposite" ,libxcomposite) | 105 | libxcb |
| 103 | ("libxcursor" ,libxcursor) | 106 | libxcomposite |
| 104 | ("libxdamage" ,libxdamage) | 107 | libxcursor |
| 105 | ("libxext" ,libxext) | 108 | libxdamage |
| 106 | ("libxfixes" ,libxfixes) | 109 | libxext |
| 107 | ("libxi" ,libxi) | 110 | libxfixes |
| 108 | ("libxkbcommon" ,libxkbcommon) | 111 | libxi |
| 109 | ("libxkbfile" ,libxkbfile) | 112 | libxkbcommon |
| 110 | ("libxrandr" ,libxrandr) | 113 | libxkbfile |
| 111 | ("libxrender" ,libxrender) | 114 | libxrandr |
| 112 | ("libxshmfence" ,libxshmfence) | 115 | libxrender |
| 113 | ("libxtst" ,libxtst) | 116 | libxshmfence |
| 114 | ("mesa" ,mesa) | 117 | libxtst |
| 115 | ("mit-krb5" ,mit-krb5) | 118 | mesa |
| 116 | ("nspr" ,nspr) | 119 | mit-krb5 |
| 117 | ("nss" ,nss) | 120 | nspr |
| 118 | ("pango" ,pango) | 121 | nss |
| 119 | ("pulseaudio" ,pulseaudio) | 122 | pango |
| 120 | ("sqlcipher" ,sqlcipher) | 123 | pulseaudio |
| 121 | ("xcb-util" ,xcb-util) | 124 | sqlcipher |
| 122 | ("xcb-util-image" ,xcb-util-image) | 125 | xcb-util |
| 123 | ("xcb-util-keysyms" ,xcb-util-keysyms) | 126 | xcb-util-image |
| 124 | ("xcb-util-renderutil" ,xcb-util-renderutil) | 127 | xcb-util-keysyms |
| 125 | ("xcb-util-wm" ,xcb-util-wm) | 128 | xcb-util-renderutil |
| 126 | ("zlib" ,zlib) | 129 | xcb-util-wm |
| 127 | 130 | zlib) | |
| 128 | ;; Keep the standard inputs of 'gnu-build-system'. | 131 | ;; Keep the standard inputs of 'gnu-build-system'. |
| 129 | ,@(standard-packages))) | 132 | (standard-packages))) |
| 130 | 133 | ||
| 131 | (and (not target) ;XXX: no cross-compilation | 134 | (and (not target) ;XXX: no cross-compilation |
| 132 | (bag | 135 | (bag |
diff --git a/nonguix/build/chromium-binary-build-system.scm b/nonguix/build/chromium-binary-build-system.scm index 0295891..30e59f1 100644 --- a/nonguix/build/chromium-binary-build-system.scm +++ b/nonguix/build/chromium-binary-build-system.scm | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | (define* (install-wrapper #:key inputs outputs #:allow-other-keys) | 19 | (define* (install-wrapper #:key inputs outputs #:allow-other-keys) |
| 20 | (let* ((output (assoc-ref outputs "out")) | 20 | (let* ((output (assoc-ref outputs "out")) |
| 21 | (bin (string-append output "/bin")) | 21 | (bin (string-append output "/bin")) |
| 22 | (fontconfig-minimal (assoc-ref inputs "fontconfig")) | 22 | (fontconfig-minimal (assoc-ref inputs "fontconfig-minimal")) |
| 23 | (nss (assoc-ref inputs "nss")) | 23 | (nss (assoc-ref inputs "nss")) |
| 24 | (wrap-inputs (map cdr inputs)) | 24 | (wrap-inputs (map cdr inputs)) |
| 25 | (lib-directories | 25 | (lib-directories |
