summary refs log tree commit diff
path: root/gnu/packages/chromium.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-02-11 23:14:09 +0100
committerLudovic Courtès <ludo@gnu.org>2022-02-11 23:51:39 +0100
commitc334b7c52fe77b68a90b23fbac5c9de7337e607b (patch)
treebe0fceac53d7192db2ba95a6906607a1c2b6b152 /gnu/packages/chromium.scm
parentaff352a5f26c90495582c8d4498b0d4e853d0de3 (diff)
downloadguix-c334b7c52fe77b68a90b23fbac5c9de7337e607b.tar.gz
gnu: ungoogled-chromium: Use 'search-auxiliary-file'.
Fixes a regression introduced in
076e825dc5d585943ce820a279fffe4af09757fb whereby "guix build
ungoogled-chromium" would fail with:

  canonicalize-path: No such file or directory: "aux-files/chromium/master-preferences.json"

* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Use
'search-auxiliary-file' for "master-preferences.json".  For some reason,
on Guile 3.0.8, 'local-file' would have its (current-source-directory)
expand to #f.
Diffstat (limited to 'gnu/packages/chromium.scm')
-rw-r--r--gnu/packages/chromium.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 6ecdea41c4..c647381d6c 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -757,7 +757,9 @@
                      (resources      (string-append lib "/resources"))
                      (preferences
                       ;; This file contains defaults for new user profiles.
-                      #$(local-file "aux-files/chromium/master-preferences.json"))
+                      #$(local-file
+                         (search-auxiliary-file
+                          "chromium/master-preferences.json")))
                      (gtk+           (assoc-ref inputs "gtk+"))
                      (xdg-utils      (assoc-ref inputs "xdg-utils")))