ieure pushed a commit to branch master
in repository guix.

commit 63f323fc98fb6e85c48721574aab8e54d95091e5
Author: Clément Lassieur <[email protected]>
AuthorDate: Wed Apr 9 16:35:16 2025 +0200

    gnu: librewolf: Create lib/icecat so that ICECAT_SYSTEM_DIR is set.
    
    This avoids issues with Native Messaging and non-guix add-ons:
    <https://issues.guix.gnu.org/77415>.
    
    * gnu/packages/librewolf.scm (librewolf)[arguments]: Add an
    'mkdir-lib-icecat' phase.
    
    Change-Id: I2e5dc8f599708c414c9266ee3453a6beac08ee66
    Signed-off-by: Ian Eure <[email protected]>
---
 gnu/packages/librewolf.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 712c99bd2c..47ac7c74a2 100644
--- a/gnu/packages/librewolf.scm
+++ b/gnu/packages/librewolf.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2015 Sou Bunnbu <[email protected]>
 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <[email protected]>
 ;;; Copyright © 2016 Alex Griffin <[email protected]>
-;;; Copyright © 2017 Clément Lassieur <[email protected]>
+;;; Copyright © 2017, 2025 Clément Lassieur <[email protected]>
 ;;; Copyright © 2017, 2018 Nikita <[email protected]>
 ;;; Copyright © 2017, 2018 ng0 <[email protected]>
 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <[email protected]>
@@ -625,7 +625,12 @@
                                                       "/default" size ".png")
                                        (string-append dest
                                                       "/librewolf.png"))))
-                          '("16" "32" "48" "64" "128"))))))
+                          '("16" "32" "48" "64" "128")))))
+          ;; Make sure ICECAT_SYSTEM_DIR is set to avoid issues with Native
+          ;; Messaging and non-guix add-ons.
+          (add-after 'install-icons 'mkdir-lib-icecat
+            (lambda _
+              (mkdir-p (string-append #$output "/lib/icecat")))))
 
       ;; Test will significantly increase build time but with little rewards.
       #:tests? #f

Reply via email to