guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: sugar: Patch additional references to tools.


From: guix-commits
Subject: 01/02: gnu: sugar: Patch additional references to tools.
Date: Sat, 4 Mar 2023 18:15:22 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 21f9edb051a2ae618bb4131582efbf32e80d9253
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Mar 5 00:11:51 2023 +0100

    gnu: sugar: Patch additional references to tools.
    
    * gnu/packages/sugar.scm (sugar)[inputs]: Add ethtool, openssh, and
    xdg-user-dirs.
    [arguments]: Patch references to ssh-keygen, xdg-user-dir, ethtool, and
    locale.
---
 gnu/packages/sugar.scm | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index d6c392fe6c..892ccf246f 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -28,12 +28,14 @@
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages search)
   #:use-module (gnu packages sphinx)
+  #:use-module (gnu packages ssh)
   #:use-module (gnu packages time)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xorg)
@@ -87,6 +89,12 @@
                  (string-append "'" (search-input-file inputs "/bin/metacity") 
"'"))
                 (("'metacity-message")
                  (string-append "'" (search-input-file inputs 
"/bin/metacity-message"))))
+              (substitute* "src/jarabe/intro/window.py"
+                (("ssh-keygen")
+                 (search-input-file inputs "/bin/ssh-keygen")))
+              (substitute* "src/jarabe/journal/model.py"
+                (("xdg-user-dir")
+                 (search-input-file inputs "/bin/xdg-user-dir")))
               (substitute* "extensions/cpsection/datetime/model.py"
                 (("/usr/share/zoneinfo/zone.tab")
                  (search-input-file inputs "/share/zoneinfo/zone.tab")))
@@ -103,6 +111,14 @@
                              "src/jarabe/model/brightness.py")
                 (("spawn_command_line_sync\\(cmd\\)")
                  "spawn_command_line_sync(cmd, 0)"))
+              (substitute* "extensions/cpsection/aboutcomputer/model.py"
+                (("ethtool")
+                 (search-input-file inputs "/sbin/ethtool")))
+              (substitute* "extensions/cpsection/language/model.py"
+                (("'locale'")
+                 (string-append "'"
+                                (search-input-file inputs "/bin/locale")
+                                "'")))
               ;; XXX: The brightness component crashes, so we disable it here.
               (substitute* "src/jarabe/main.py"
                 (("brightness.get_instance\\(\\)") ""))
@@ -127,12 +143,15 @@
                (find-files (string-append #$output "/bin") "^sugar.*")))))))
     (inputs
      (list bash-minimal
+           ethtool
            gtk+
            metacity
            mobile-broadband-provider-info
+           openssh                      ;for ssh-keygen
            python
            sugar-toolkit-gtk3
-           tzdata))
+           tzdata
+           xdg-user-dirs))
     ;; Some packages are propagated so that they can be used with gobject
     ;; introspection at runtime; others are propagated for their dbus
     ;; services.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]